mirror of
https://github.com/reactos/CMake.git
synced 2024-12-15 07:41:15 +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>.
9 lines
478 B
CMake
9 lines
478 B
CMake
set(CMAKE_LIBRARY_PATH_FLAG "--search_path=")
|
|
set(CMAKE_LINK_LIBRARY_FLAG "--library=")
|
|
set(CMAKE_INCLUDE_FLAG_ASM "--include_path=")
|
|
|
|
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> --compile_only --asm_file=<SOURCE> <DEFINES> <INCLUDES> <FLAGS> --output_file=<OBJECT>")
|
|
set(CMAKE_ASM_LINK_EXECUTABLE "<CMAKE_ASM_COMPILER> <OBJECTS> --run_linker --output_file=<TARGET> <CMAKE_ASM_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES>")
|
|
|
|
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm;s;abs)
|