... | ... | @@ -1922,7 +1922,6 @@ if(MSVC) |
|
|
set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "/MT /Zi /O2 /Ob1 /D NDEBUG")
|
|
|
endif()
|
|
|
|
|
|
```cmake
|
|
|
# cxx_flag_overrides.cmake
|
|
|
if(MSVC)
|
|
|
set(CMAKE_CXX_FLAGS_DEBUG_INIT "/D_DEBUG /MTd /Zi /Ob0 /Od /RTC1")
|
... | ... | @@ -1933,7 +1932,7 @@ endif() |
|
|
```
|
|
|
**NOTE:** These files are only evaluated on the first run of CMake so
|
|
|
they can't be dependent on a CMake option() meant to be toggled from the
|
|
|
GUI, for example. They could be dependent on a command line -D option or
|
|
|
GUI, for example. They could be dependent on a command line `-D` option or
|
|
|
an environment variable if desired.
|
|
|
|
|
|
Then enable them by setting the following variables prior to the
|
... | ... | |