mirror of
https://github.com/reactos/reactos.git
synced 2025-07-29 09:41:48 +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
|
@ -24,7 +24,7 @@ list(APPEND SOURCE
|
|||
add_executable(spoolsv ${SOURCE} spoolsv.rc)
|
||||
|
||||
if(USE_CLANG_CL)
|
||||
add_target_compile_flags(spoolsv "-Wno-cast-calling-convention")
|
||||
target_compile_options(spoolsv PRIVATE "-Wno-cast-calling-convention")
|
||||
endif()
|
||||
|
||||
set_module_type(spoolsv win32cui UNICODE)
|
||||
|
|
|
@ -45,10 +45,10 @@ list(APPEND CONSRV_SOURCE
|
|||
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
||||
if(MSVC)
|
||||
## NOTE: No need to specify it as we use MSVC :)
|
||||
##add_target_compile_flags(consrv "/Ze")
|
||||
##target_compile_options(consrv PRIVATE "/Ze")
|
||||
#set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
|
||||
else()
|
||||
#add_target_compile_flags(consrv "-fms-extensions")
|
||||
#target_compile_options(consrv PRIVATE "-fms-extensions")
|
||||
set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
|
||||
endif()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue