Skip to content

Commit

Permalink
Bug fix for shitty MSVC code generation
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexhuszagh committed Jul 22, 2017
1 parent 003f611 commit 0c506cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Expand Up @@ -102,11 +102,11 @@ if("${MSVC}" OR "${DYND_SIMULATED_COMPILER}" STREQUAL "MSVC")
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "Clang")
# If this is the clang-cl compiler.
# Don't enable -WX here yet.
set(CMAKE_CXX_FLAGS "-EHsc -bigobj -wd4503 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-EHsc -bigobj -wd4503 -wd4789 ${CMAKE_CXX_FLAGS}")
elseif(${CMAKE_CXX_COMPILER_VERSION} VERSION_LESS 19)
message(FATAL_ERROR "Only MSVC 2015 (Version 19.0) and later are supported by LibDyND. Found version ${CMAKE_CXX_COMPILER_VERSION}.")
else()
set(CMAKE_CXX_FLAGS "-WX -EHsc -bigobj -wd4503 ${CMAKE_CXX_FLAGS}")
set(CMAKE_CXX_FLAGS "-WX -EHsc -bigobj -wd4503 -wd4789 ${CMAKE_CXX_FLAGS}")
endif()
else()
if (${CMAKE_CXX_COMPILER_ID} STREQUAL "GNU")
Expand Down

0 comments on commit 0c506cd

Please sign in to comment.