Skip to content

Commit

Permalink
Fix dynamic build issue on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
megabyde committed Apr 3, 2017
1 parent f07332b commit 73adfcb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ enable_testing()
find_package(Threads)
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
set(CMAKE_CXX_STANDARD 14)
# Prevent overriding the parent project's compiler/linker settings on Windows
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)

if(MSVC)
set(CMAKE_CXX_FLAGS "/W4 /wd4100 /WX /EHsc")
Expand Down

0 comments on commit 73adfcb

Please sign in to comment.