mirror of https://github.com/CGAL/cgal
/wd4503 is only for MSVC 2015
This commit is contained in:
parent
c00c481e06
commit
80c3baa196
|
|
@ -390,8 +390,6 @@ if(MSVC)
|
|||
"-D_SCL_SECURE_NO_DEPRECATE;-D_SCL_SECURE_NO_WARNINGS")
|
||||
uniquely_add_flags(CGAL_CXX_FLAGS "/fp:strict")
|
||||
uniquely_add_flags(CGAL_CXX_FLAGS "/fp:except-")
|
||||
uniquely_add_flags(CGAL_CXX_FLAGS "/wd4503"
|
||||
)# Suppress warnings C4503 about "decorated name length exceeded"
|
||||
uniquely_add_flags(CGAL_CXX_FLAGS "/bigobj") # Use /bigobj by default
|
||||
|
||||
if(RUNNING_CGAL_AUTO_TEST)
|
||||
|
|
|
|||
|
|
@ -121,9 +121,13 @@ function(CGAL_setup_CGAL_dependencies target)
|
|||
target_compile_options(${target} INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/fp:strict>
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/fp:except->
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/wd4503> # Suppress warnings C4503 about "decorated name length exceeded"
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/bigobj> # Use /bigobj by default
|
||||
)
|
||||
if(MSVC_TOOLSET_VERSION VERSION_LESS_EQUAL 140) # for MSVC 2015
|
||||
target_compile_options(${target} INTERFACE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:/wd4503> # Suppress warnings C4503 about "decorated name length exceeded"
|
||||
)
|
||||
endif()
|
||||
elseif ("${CMAKE_CXX_COMPILER_ID}" MATCHES "AppleClang")
|
||||
if (CMAKE_CXX_COMPILER_VERSION VERSION_LESS 11.0.3)
|
||||
message(STATUS "Apple Clang version ${CMAKE_CXX_COMPILER_VERSION} compiler detected")
|
||||
|
|
|
|||
Loading…
Reference in New Issue