mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 10:03:26 +00:00
[CMAKE] Fix host tools build on x86-64 mingw
Dynamically check for sys/types.h and pid_t in wine config.h Use TARGET_xxx defines instead of _X86_ as this is undefined by GCC Add some sense in include directories management by using interface libraries
This commit is contained in:
parent
15748cf03a
commit
493ceb7ade
19 changed files with 64 additions and 30 deletions
|
@ -23,10 +23,11 @@ else()
|
|||
|
||||
add_definitions(-D__NO_CTYPE_INLINES -DINFLIB_HOST -D_CRT_SECURE_NO_WARNINGS)
|
||||
add_library(inflibhost ${SOURCE})
|
||||
target_include_directories(inflibhost INTERFACE ${CMAKE_CURRENT_SOURCE_DIR})
|
||||
|
||||
if(NOT MSVC)
|
||||
add_target_compile_flags(inflibhost "-fshort-wchar -Wpointer-arith -Wwrite-strings")
|
||||
endif()
|
||||
|
||||
target_link_libraries(inflibhost unicode)
|
||||
target_link_libraries(inflibhost PRIVATE host_includes)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue