Better RelWithDebInfo flags for CL.exe
This commit is contained in:
+2
-1
@@ -168,7 +168,8 @@ if (MSVC)
|
|||||||
|
|
||||||
# override CMake default RelWithDebInfo flags. This is important to ensure
|
# override CMake default RelWithDebInfo flags. This is important to ensure
|
||||||
# good performance
|
# good performance
|
||||||
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/MT /Zi /O2 /Ob2 /D NDEBUG")
|
set(CMAKE_CXX_FLAGS_RELWITHDEBINFO "/Zi /O2 /Ob2 /D NDEBUG")
|
||||||
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO "/Zi /O2 /Ob2 /D NDEBUG")
|
||||||
else (MSVC)
|
else (MSVC)
|
||||||
set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted")
|
set(MSVC_3RDPARTY_ROOT NOT_FOUND CACHE PATH "Location where the third-party dependencies are extracted")
|
||||||
endif (MSVC)
|
endif (MSVC)
|
||||||
|
|||||||
Reference in New Issue
Block a user