Skip to content
Snippets Groups Projects
Commit feb3e0ff authored by Jeremie Deray's avatar Jeremie Deray
Browse files

fix missing thread deps

parent 6fd46789
No related branches found
No related tags found
1 merge request!82Gtest
......@@ -31,6 +31,8 @@ option(BUILD_EXAMPLES "Build examples" ON)
FIND_PACKAGE(Eigen 3 REQUIRED)
FIND_PACKAGE(Threads REQUIRED)
FIND_PACKAGE(Ceres QUIET) #Ceres is not required
IF(Ceres_FOUND)
MESSAGE("Ceres Library FOUND: Ceres related sources will be built.")
......@@ -395,10 +397,9 @@ IF(YAMLCPP_FOUND)
ENDIF(laser_scan_utils_FOUND)
ENDIF(YAMLCPP_FOUND)
# create the shared library
ADD_LIBRARY(${PROJECT_NAME} SHARED ${SRCS} ${SRCS_WRAPPER})
TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${CMAKE_THREAD_LIBS_INIT})
#Link the created libraries
#=============================================================
......
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