Skip to content

Commit

Permalink
Disable USE_PTHREAD on windows to enable WITH_PTHREAD that allows to …
Browse files Browse the repository at this point in the history
…build the embedded pthread library on windows
  • Loading branch information
fspindle committed Sep 5, 2023
1 parent 831bf15 commit cc0782b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,7 @@ if(SOQT_FOUND) # SoQt < 1.6.0 that depends on Qt4 was found. We need an explicit
endif()
VP_OPTION(USE_SOXT SOXT "" "Include Coin/SoXt support" "" OFF IF USE_COIN3D AND NOT WINRT AND NOT IOS)
set(THREADS_PREFER_PTHREAD_FLAG ON)
VP_OPTION(USE_PTHREAD Threads "" "Include pthread support" "" ON)
VP_OPTION(USE_PTHREAD Threads "" "Include pthread support" "" ON IF NOT (WIN32 OR MINGW))

# We need threads with c++11
if((VISP_CXX_STANDARD GREATER VISP_CXX_STANDARD_98) AND NOT USE_PTHREAD)
Expand Down

0 comments on commit cc0782b

Please sign in to comment.