Skip to content
Snippets Groups Projects

Resolve "Adapt to core CMakeLists.txt refactor"

Merged Mederic Fourmy requested to merge 28-adapt-to-core-cmakelists-txt-refactor into main
1 file
+ 16
14
Compare changes
  • Side-by-side
  • Inline
+ 16
14
@@ -53,20 +53,22 @@ FIND_PACKAGE(falkolib QUIET)
@@ -53,20 +53,22 @@ FIND_PACKAGE(falkolib QUIET)
find_package(PkgConfig)
find_package(PkgConfig)
pkg_check_modules(csm QUIET csm )
pkg_check_modules(csm QUIET csm )
link_directories(${csm_LIBRARY_DIRS})
link_directories(${csm_LIBRARY_DIRS})
message(csm_LIBRARY_DIRS: ${csm_LIBRARY_DIRS})
if(csm_FOUND)
# keep only the files in a lib folder: by default the "." is in csm_LIBRARY_DIRS,
if(NOT csm_LIBRARY_DIRS)
# which is not acceptable for target_link_directories
message("csm_LIBRARY_DIRS is empty")
foreach (my_entry IN LISTS csm_LIBRARY_DIRS)
else()
message("csm_LIBRARY_DIRS has ${my_entry}")
# keep only the files in a lib folder: by default the "." is in csm_LIBRARY_DIRS,
endforeach()
# which is not acceptable for target_link_directories
list(FILTER csm_LIBRARY_DIRS INCLUDE REGEX "lib")
message(csm_LIBRARY_DIRS:)
foreach (my_entry IN LISTS csm_LIBRARY_DIRS)
foreach (my_entry IN LISTS csm_LIBRARY_DIRS)
message("csm_LIBRARY_DIRS has ${my_entry}")
message("csm_LIBRARY_DIRS has ${my_entry}")
endforeach()
endforeach()
list(FILTER csm_LIBRARY_DIRS INCLUDE REGEX "lib")
foreach (my_entry IN LISTS csm_LIBRARY_DIRS)
message("csm_LIBRARY_DIRS has ${my_entry}")
endforeach()
 
endif()
 
endif()
# ============ INCLUDES ============
# ============ INCLUDES ============
INCLUDE_DIRECTORIES("include")
INCLUDE_DIRECTORIES("include")
Loading