mirror of
https://github.com/reactos/ninja.git
synced 2024-11-23 19:59:43 +00:00
build: Add IBM i compile/link flags
This commit is contained in:
parent
5993141c09
commit
5203aa49ed
@ -119,6 +119,14 @@ if(MINGW)
|
|||||||
target_compile_definitions(libninja PRIVATE _WIN32_WINNT=0x0601 __USE_MINGW_ANSI_STDIO=1)
|
target_compile_definitions(libninja PRIVATE _WIN32_WINNT=0x0601 __USE_MINGW_ANSI_STDIO=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# On IBM i (identified as "OS400" for compatibility reasons), this fixes missing
|
||||||
|
# PRId64 (and others) at compile time, and links to libutil for getopt_long
|
||||||
|
if(CMAKE_SYSTEM_NAME STREQUAL "OS400")
|
||||||
|
string(APPEND CMAKE_CXX_FLAGS " -D__STDC_FORMAT_MACROS")
|
||||||
|
string(APPEND CMAKE_C_FLAGS " -D__STDC_FORMAT_MACROS")
|
||||||
|
string(APPEND CMAKE_EXE_LINKER_FLAGS " -lutil")
|
||||||
|
endif()
|
||||||
|
|
||||||
# Main executable is library plus main() function.
|
# Main executable is library plus main() function.
|
||||||
add_executable(ninja src/ninja.cc)
|
add_executable(ninja src/ninja.cc)
|
||||||
target_link_libraries(ninja PRIVATE libninja libninja-re2c)
|
target_link_libraries(ninja PRIVATE libninja libninja-re2c)
|
||||||
|
Loading…
Reference in New Issue
Block a user