Skip to content

Commit

Permalink
fixed missing optional find_dependency lima for IOs
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolaslg committed Aug 8, 2024
1 parent e645819 commit f524428
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
4 changes: 4 additions & 0 deletions gmdsConfig.cmake.in
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
include(CMakeFindDependencyMacro)
find_dependency(Eigen3 REQUIRED NO_MODULE)

if (@WITH_LIMA@) # WITH_LIMA
find_dependency(Lima REQUIRED)
endif()

@PACKAGE_INIT@

set_and_check(GMDS_INCLUDE_DIR "@PACKAGE_INCLUDE_INSTALL_DIR@")
Expand Down
18 changes: 6 additions & 12 deletions io/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,22 +73,16 @@ generate_export_header(${GMDS_LIB}
include(GNUInstallDirs)

#LIBRARY TO INSTALL
target_link_libraries(${GMDS_LIB} PUBLIC
${LIB_GMDS_IG})

if(WITH_LIMA)
target_link_libraries(${GMDS_LIB} PUBLIC
${LIB_GMDS_IG}
${LIB_GMDS_SOFIANE}
Lima::Lima)
elseif(WITH_MESHB)
target_link_libraries(${GMDS_LIB} PUBLIC
${LIB_GMDS_IG}
${LIB_GMDS_SOFIANE}
PRIVATE
endif()
if(WITH_MESHB)
target_link_libraries(${GMDS_LIB} PRIVATE
${libMeshb_LIBRARIES})
else()
target_link_libraries(${GMDS_LIB} PUBLIC
${LIB_GMDS_IG}
${LIB_GMDS_IGALGO}
${LIB_GMDS_SOFIANE})
endif()


Expand Down

0 comments on commit f524428

Please sign in to comment.