From 96030a1aca0eedf4ee774be09a84e2806e34cecc Mon Sep 17 00:00:00 2001 From: "K. Williams" <kewilliams@usgs.gov> Date: Tue, 2 Oct 2018 08:32:39 -0700 Subject: [PATCH] added flags for resolving compilation issue for missing pthreads on a windows 10 machine with VS2017. (#106) --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5fa0daf..cee474e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -50,6 +50,8 @@ target_link_libraries(usgscsm gtest ${CMAKE_THREAD_LIBS_INIT}) if(WIN32) + option(CMAKE_USE_WIN32_THREADS_INIT "using WIN32 threads" ON) + option(gtest_disable_pthreads "Disable uses of pthreads in gtest." ON) install(TARGETS usgscsm RUNTIME DESTINATION ${CMAKE_INSTALL_LIBDIR}) install(DIRECTORY ${USGSCSM_INCLUDE_DIRS} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) -- GitLab