mirror of
https://github.com/reactos/CMake.git
synced 2024-11-27 21:41:03 +00:00
2f3eee7490
Factor duplicate information out of Compiler/XL-<lang>.cmake modules into a macro in a new Compiler/XL.cmake module. Invoke it from the per-language files to produce the original settings.
10 lines
475 B
CMake
10 lines
475 B
CMake
include(Compiler/XL)
|
|
__compiler_xl(C)
|
|
set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG")
|
|
set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
|
|
|
# -qthreaded = Ensures that all optimizations will be thread-safe
|
|
# -qalias=noansi = Turns off type-based aliasing completely (safer optimizer)
|
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
|
SET(CMAKE_C_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e")
|