Skip to content

Commit

Permalink
cmake: don't specify the build type for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
julianoes committed Nov 2, 2017
1 parent fc49906 commit dd55567
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ else()
-std=c++11
-DWINDOWS
-DCURL_STATICLIB
/MD
)

set(warnings "-WX -W2")
Expand Down Expand Up @@ -211,7 +210,7 @@ if(NOT IOS AND NOT ANDROID)
if (MSVC)
# We need this to prevent linking errors from happening in the Windows build.
target_compile_definitions(unit_tests_runner PRIVATE -DGTEST_LINKED_AS_SHARED_LIBRARY)
target_compile_options(unit_tests_runner PUBLIC "/wd4251" "/wd4275")
target_compile_options(unit_tests_runner PUBLIC "/wd4251" "/wd4275")
endif()

target_compile_definitions(unit_tests_runner PRIVATE FAKE_TIME=1)
Expand Down

0 comments on commit dd55567

Please sign in to comment.