Commit 8a57a353 authored by Patrik Huber's avatar Patrik Huber

Trying pthreads as linker flags

parent 47b222ec
...@@ -47,8 +47,10 @@ target_compile_options(fit-model-simple PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthr ...@@ -47,8 +47,10 @@ target_compile_options(fit-model-simple PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthr
add_executable(fit-model fit-model.cpp) add_executable(fit-model fit-model.cpp)
target_link_libraries(fit-model eos ${OpenCV_LIBS} ${Boost_LIBRARIES}) target_link_libraries(fit-model eos ${OpenCV_LIBS} ${Boost_LIBRARIES})
target_compile_options(fit-model PUBLIC "$<$<CXX_COMPILER_ID:GNU>:-pthread>") #target_compile_options(fit-model PUBLIC "$<$<CXX_COMPILER_ID:GNU>:-pthread>")
target_compile_options(fit-model PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthreads>") #target_compile_options(fit-model PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthreads>") # => clang says this is unused during compilation!
target_link_libraries(rcr-train "$<$<CXX_COMPILER_ID:GNU>:-pthread>")
target_link_libraries(rcr-train "$<$<CXX_COMPILER_ID:Clang>:-pthreads>")
if(EOS_BUILD_CERES_EXAMPLE) if(EOS_BUILD_CERES_EXAMPLE)
# Find Ceres, for the fit-model-ceres app: # Find Ceres, for the fit-model-ceres app:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment