mirror of
https://github.com/reactos/CMake.git
synced 2024-12-14 15:19:39 +00:00
c736de7b28
Teach the Makefile and Ninja generators to substitute for an <INCLUDES> placeholder instead of putting -I in <FLAGS>. Update our values for CMAKE_<LANG>_COMPILE_OBJECT, CMAKE_<LANG>_CREATE_ASSEMBLY_SOURCE, and CMAKE_<LANG>_CREATE_PREPROCESSED_SOURCE to place <INCLUDES> just before <FLAGS>.
14 lines
696 B
CMake
14 lines
696 B
CMake
set(CMAKE_CXX_VERBOSE_FLAG "-v")
|
|
|
|
set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -S <SOURCE> -o <ASSEMBLY_SOURCE>")
|
|
set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE "<CMAKE_CXX_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -E <SOURCE> > <PREPROCESSED_SOURCE>")
|
|
|
|
# HP aCC since version 3.80 supports the flag +hpxstd98 to get ANSI C++98
|
|
# template support. It is known that version 6.25 doesn't need that flag.
|
|
# Current assumption: the flag is needed for every version from 3.80 to 4
|
|
# to get it working.
|
|
if(CMAKE_CXX_COMPILER_VERSION VERSION_LESS 4 AND
|
|
NOT CMAKE_CXX_COMPILER_VERSION VERSION_LESS 3.80)
|
|
set(CMAKE_CXX98_STANDARD_COMPILE_OPTION "+hpxstd98")
|
|
endif()
|