mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 05:12:55 +00:00
[CMAKE] Replace custom functions to built-in ones
add_target_compile_definitions -> target_compile_definitions add_target_compile_flags -> target_compile_options add_target_include_directories -> target_include_directories
This commit is contained in:
parent
480f729f6d
commit
7e069ccdb2
93 changed files with 163 additions and 180 deletions
|
@ -47,13 +47,13 @@ add_library(user32_wsprintf
|
|||
string/wcstombs_nt.c)
|
||||
|
||||
add_dependencies(user32_wsprintf psdk)
|
||||
add_target_compile_definitions(user32_wsprintf _USER32_WSPRINTF)
|
||||
target_compile_definitions(user32_wsprintf PRIVATE _USER32_WSPRINTF)
|
||||
|
||||
add_library(memcmp mem/memcmp.c)
|
||||
add_dependencies(memcmp psdk)
|
||||
|
||||
add_library(getopt misc/getopt.c)
|
||||
add_target_compile_definitions(getopt _DLL __USE_CRTIMP)
|
||||
target_compile_definitions(getopt PRIVATE _DLL __USE_CRTIMP)
|
||||
add_dependencies(getopt psdk)
|
||||
|
||||
add_library(strtol
|
||||
|
@ -64,7 +64,7 @@ add_library(strtol
|
|||
string/strtoul.c
|
||||
string/strtoull.c
|
||||
string/wctype.c)
|
||||
add_target_compile_definitions(strtol _LIBCNT_)
|
||||
target_compile_definitions(strtol PRIVATE _LIBCNT_)
|
||||
add_dependencies(strtol psdk)
|
||||
|
||||
|
||||
|
|
|
@ -604,8 +604,8 @@ endif()
|
|||
|
||||
add_library(crt ${CRT_SOURCE} ${CRT_WINE_SOURCE} ${crt_asm})
|
||||
target_link_libraries(crt chkstk)
|
||||
add_target_compile_definitions(crt
|
||||
__MINGW_IMPORT=extern
|
||||
target_compile_definitions(crt
|
||||
PRIVATE __MINGW_IMPORT=extern
|
||||
USE_MSVCRT_PREFIX
|
||||
_MSVCRT_LIB_
|
||||
_MSVCRT_
|
||||
|
|
|
@ -241,8 +241,8 @@ set_source_files_properties(${LIBCNTPR_ASM_SOURCE} PROPERTIES COMPILE_DEFINITION
|
|||
add_asm_files(libcntpr_asm ${LIBCNTPR_ASM_SOURCE})
|
||||
|
||||
add_library(libcntpr ${LIBCNTPR_SOURCE} ${libcntpr_asm})
|
||||
add_target_compile_definitions(libcntpr
|
||||
NO_RTL_INLINES
|
||||
target_compile_definitions(libcntpr
|
||||
PRIVATE NO_RTL_INLINES
|
||||
_NTSYSTEM_
|
||||
_NTDLLBUILD_
|
||||
_LIBCNT_
|
||||
|
|
|
@ -102,7 +102,7 @@ set_source_files_properties(${MSVCRTEX_ASM_SOURCE} PROPERTIES COMPILE_DEFINITION
|
|||
add_asm_files(msvcrtex_asm ${MSVCRTEX_ASM_SOURCE})
|
||||
|
||||
add_library(msvcrtex ${MSVCRTEX_SOURCE} ${msvcrtex_asm})
|
||||
add_target_compile_definitions(msvcrtex _DLL _MSVCRTEX_)
|
||||
target_compile_definitions(msvcrtex PRIVATE _DLL _MSVCRTEX_)
|
||||
set_source_files_properties(startup/crtdll.c PROPERTIES COMPILE_DEFINITIONS CRTDLL)
|
||||
set_source_files_properties(startup/crtexe.c
|
||||
startup/wcrtexe.c PROPERTIES COMPILE_DEFINITIONS _M_CEE_PURE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue