Commit 96030a1a authored by K. Williams's avatar K. Williams Committed by Jesse Mapel
Browse files

added flags for resolving compilation issue for missing pthreads on a windows...

added flags for resolving compilation issue for missing pthreads on a windows 10 machine with VS2017. (#106)
parent c7c54e88
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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})