Skip to content

Commit

Permalink
Merge pull request #683 from jorisv/topic/fix_find_cholmod_windows
Browse files Browse the repository at this point in the history
Fix FindCHOLMOD.cmake on Windows
  • Loading branch information
jorisv authored Apr 11, 2024
2 parents da41708 + 8a0ffca commit f4af8f7
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions find-external/CHOLMOD/FindCHOLMOD.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,16 @@ if(CHOLMOD_LIBRARIES)
add_library(CHOLMOD::CHOLMOD SHARED IMPORTED)
set_target_properties(
CHOLMOD::CHOLMOD
PROPERTIES IMPORTED_LOCATION "${CHOLMOD_LIBRARIES}"
INTERFACE_LINK_LIBRARIES "${CHOLMOD_DEPENDENCIES}"
INTERFACE_INCLUDE_DIRECTORIES "${CHOLMOD_INCLUDES}")
PROPERTIES INTERFACE_LINK_LIBRARIES "${CHOLMOD_DEPENDENCIES}"
INTERFACE_INCLUDE_DIRECTORIES "${CHOLMOD_INCLUDES}"
IMPORTED_CONFIGURATIONS "RELEASE")
if(WIN32)
set_target_properties(CHOLMOD::CHOLMOD PROPERTIES IMPORTED_IMPLIB_RELEASE
"${CHOLMOD_LIBRARIES}")
else()
set_target_properties(CHOLMOD::CHOLMOD PROPERTIES IMPORTED_LOCATION_RELEASE
"${CHOLMOD_LIBRARIES}")
endif()
endif(CHOLMOD_LIBRARIES)

mark_as_advanced(
Expand Down

0 comments on commit f4af8f7

Please sign in to comment.