Skip to content

Commit

Permalink
external/cholmod: fix export
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Feb 10, 2024
1 parent 654a1d7 commit 0ff57d4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions find-external/CHOLMOD/findCHOLMOD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -89,18 +89,18 @@ if(CHOLMOD_LIBRARIES)

endif()

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CHOLMOD DEFAULT_MSG CHOLMOD_INCLUDES
CHOLMOD_LIBRARIES)

if(CHOLMOD_LIBRARIES)
add_library(SuiteSparse::CHOLMOD SHARED IMPORTED)
add_library(CHOLMOD::CHOLMOD SHARED IMPORTED)
set_target_properties(
SuiteSparse::CHOLMOD
CHOLMOD::CHOLMOD
PROPERTIES IMPORTED_LOCATION ${CHOLMOD_LIBRARIES}
INTERFACE_INCLUDE_DIRECTORIES "${CHOLMOD_INCLUDES}")
endif(CHOLMOD_LIBRARIES)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CHOLMOD DEFAULT_MSG CHOLMOD_INCLUDES
CHOLMOD_LIBRARIES)

mark_as_advanced(
CHOLMOD_INCLUDES
CHOLMOD_LIBRARIES
Expand Down

0 comments on commit 0ff57d4

Please sign in to comment.