Skip to content

Commit

Permalink
windows fix
Browse files Browse the repository at this point in the history
  • Loading branch information
vsoftco committed Nov 28, 2023
1 parent bb4c415 commit d96d843
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
11 changes: 2 additions & 9 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,8 @@ if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang")
add_compile_options("-stdlib=libc++")
endif ()

#### Windows issues with Microsoft Visual Studio
if (MSVC)
include_directories(SYSTEM libs/third_party/pthreadwin32)
add_compile_options(-bigobj)
add_compile_definitions(NOMINMAX)
if (MSVC_VERSION GREATER_EQUAL 1914)
add_compile_options("/Zc:__cplusplus")
endif ()
endif ()
#### Windows issues
include(cmake/staq_windows.cmake)

#### MinGW or Cygwin have issues with object files that are too large
if (MINGW OR CYGWIN)
Expand Down
9 changes: 9 additions & 0 deletions cmake/staq_windows.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#### Windows issues with Microsoft Visual Studio
if (MSVC)
include_directories(SYSTEM libs/third_party/pthreadwin32)
add_compile_options(-bigobj)
add_compile_definitions(NOMINMAX)
if (MSVC_VERSION GREATER_EQUAL 1914)
add_compile_options("/Zc:__cplusplus")
endif ()
endif ()

0 comments on commit d96d843

Please sign in to comment.