Skip to content
Snippets Groups Projects
Commit b1361cfc authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

target_link_directories not in cmake<3.13

parent 5b45afcb
No related branches found
No related tags found
2 merge requests!8Cmake refactoring was merged to main, merge back to devel also,!7Resolve "Adapt to core CMakeLists.txt refactor"
Pipeline #10949 passed
......@@ -151,7 +151,11 @@ IF(csm_FOUND)
MESSAGE(STATUS "CSM lib found")
TARGET_LINK_LIBRARIES(${PROJECT_NAME} PUBLIC ${csm_LIBRARIES})
target_include_directories(${PROJECT_NAME} PUBLIC ${csm_INCLUDE_DIRS})
target_link_directories(${PROJECT_NAME} PUBLIC ${csm_LIBRARY_DIRS})
if(${CMAKE_VERSION} VERSION_LESS "3.13.0")
link_directories(${PROJECT_NAME} PUBLIC ${csm_LIBRARY_DIRS})
else()
target_link_directories(${PROJECT_NAME} PUBLIC ${csm_LIBRARY_DIRS})
endif()
ENDIF(csm_FOUND)
IF(falkolib_FOUND)
MESSAGE(STATUS "FALKO lib found:")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment