Skip to content
Snippets Groups Projects
Commit 10cc95ce authored by Joaquim Casals Buñuel's avatar Joaquim Casals Buñuel
Browse files

Fixed CMake issues regarding CSM

parent 0d6a8e0f
No related branches found
No related tags found
No related merge requests found
......@@ -46,8 +46,8 @@ macro(csm_report_not_found REASON_MSG)
# Note <package>_FIND_[REQUIRED/QUIETLY] variables defined by
# FindPackage() use the camelcase library name, not uppercase.
if (csm_FIND_QUIETLY)
message(STATUS "Failed to find csm- " ${REASON_MSG} ${ARGN})
else (csm_FIND_REQUIRED)
message(STATUS "Ignoring csm dependency - " ${REASON_MSG} ${ARGN})
elseif(csm_FIND_REQUIRED)
message(FATAL_ERROR "Failed to find csm - " ${REASON_MSG} ${ARGN})
else()
# Neither QUIETLY nor REQUIRED, use SEND_ERROR which emits an error
......
......@@ -73,7 +73,9 @@ SET(SRCS
ENDIF(csm_FOUND)
# create the shared library
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS})
target_link_libraries(${PROJECT_NAME} ${csm_LIBRARY})
IF(csm_FOUND)
target_link_libraries(${PROJECT_NAME} ${csm_LIBRARY})
ENDIF(csm_FOUND)
#install library
INSTALL(TARGETS ${PROJECT_NAME}
......
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