mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
eventually MSVC does not like my /O2 flags (incompatibility with other option set by default)
This commit is contained in:
parent
19b035ee11
commit
1c24f5bbc5
@ -83,8 +83,11 @@ if(CMAKE_COMPILER_IS_GNUCXX)
|
|||||||
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g2")
|
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -O0 -g2")
|
||||||
endif(CMAKE_SYSTEM_NAME MATCHES Linux)
|
endif(CMAKE_SYSTEM_NAME MATCHES Linux)
|
||||||
set(EI_OFLAG "-O2")
|
set(EI_OFLAG "-O2")
|
||||||
elseif(MSVC)
|
# MSVC fails with:
|
||||||
set(EI_OFLAG "/O2")
|
# cl : Command line warning D9025 : overriding '/Od' with '/O2'
|
||||||
|
# cl : Command line error D8016 : '/RTC1' and '/O2' command-line options are incompatible
|
||||||
|
# elseif(MSVC)
|
||||||
|
# set(EI_OFLAG "/O2")
|
||||||
else(CMAKE_COMPILER_IS_GNUCXX)
|
else(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
set(EI_OFLAG "")
|
set(EI_OFLAG "")
|
||||||
endif(CMAKE_COMPILER_IS_GNUCXX)
|
endif(CMAKE_COMPILER_IS_GNUCXX)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user