Skip to content

Commit

Permalink
Fix CMakeLists
Browse files Browse the repository at this point in the history
  • Loading branch information
leezu committed Apr 2, 2020
1 parent bac2b67 commit 27cce4a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,8 @@ if(MSVC)
add_definitions(-DDMLC_STRICT_CXX11)
add_definitions(-DNOMINMAX)
set(CMAKE_C_FLAGS "/MP")
# report an accurate value for recent C++ language standards support
set(CMAKE_CXX_FLAGS "/Zc:__cplusplus")
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /bigobj")
# /Zc:__cplusplus to accurately report recent C++ language standards support
set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} /bigobj /Zc:__cplusplus")
else()
include(CheckCXXCompilerFlag)
if(USE_CXX14_IF_AVAILABLE)
Expand Down

0 comments on commit 27cce4a

Please sign in to comment.