Commit 47b222ec authored by Patrik Huber's avatar Patrik Huber

Add pthread to fit-model

parent b6f6635a
......@@ -47,6 +47,9 @@ target_compile_options(fit-model-simple PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthr
add_executable(fit-model fit-model.cpp)
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:Clang>:-pthreads>")
if(EOS_BUILD_CERES_EXAMPLE)
# Find Ceres, for the fit-model-ceres app:
find_package(Ceres REQUIRED)
......
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