Commit b32e96f8 authored by Patrik Huber's avatar Patrik Huber

Something needs pthreads - try adding as compile flag

parent 826dfdd5
...@@ -40,6 +40,9 @@ endif() ...@@ -40,6 +40,9 @@ endif()
add_executable(fit-model-simple fit-model-simple.cpp) add_executable(fit-model-simple fit-model-simple.cpp)
target_link_libraries(fit-model-simple eos ${OpenCV_LIBS} ${Boost_LIBRARIES}) target_link_libraries(fit-model-simple eos ${OpenCV_LIBS} ${Boost_LIBRARIES})
target_compile_options(fit-model-simple PUBLIC "$<$<CXX_COMPILER_ID:GNU>:-pthread>")
target_compile_options(fit-model-simple PUBLIC "$<$<CXX_COMPILER_ID:Clang>:-pthreads>")
# Model fitting example that fits orthographic camera, shape, blendshapes, and contours: # Model fitting example that fits orthographic camera, shape, blendshapes, and contours:
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})
......
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