Skip to content

Commit

Permalink
add pthread library
Browse files Browse the repository at this point in the history
  • Loading branch information
schornakj committed Sep 23, 2020
1 parent eb82177 commit be20576
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion gl_depth_sim/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ find_package(Eigen3 REQUIRED)
find_package(PCL REQUIRED)
find_package(OpenCV REQUIRED)

find_package(Threads REQUIRED)
set(THREADS_PREFER_PTHREAD_FLAG ON)

# Extensions
find_package(assimp REQUIRED) # Just used for loading models in mesh_loader.h
find_package(OpenCV REQUIRED) # Used for interface extension
Expand All @@ -27,7 +30,7 @@ add_library(${PROJECT_NAME} SHARED
src/${PROJECT_NAME}/shader_program.cpp
src/${PROJECT_NAME}/glfw_guard.cpp)
target_compile_options(${PROJECT_NAME} PRIVATE -std=c++14)
target_compile_options(${PROJECT_NAME} PUBLIC -mno-avx)
target_compile_options(${PROJECT_NAME} PUBLIC -mno-avx -pthread)
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")
Expand Down

0 comments on commit be20576

Please sign in to comment.