[CMAKE] target_compile_definitions() calls: Remove (now) useless '-D' (#3490)

Documented as automatically removed, since CMake 3.12.4 at least.
https://cmake.org/cmake/help/v3.12/command/target_compile_definitions.html
This commit is contained in:
Serge Gautherie 2021-03-03 04:16:02 +01:00 committed by GitHub
parent fc2b105e5d
commit 55b93aecdc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 5 additions and 5 deletions

View file

@ -45,5 +45,5 @@ function(add_d3dx9_target __version)
add_pch(${module} ../d3dx9_36/precomp.h "${PCH_SKIP_SOURCE}")
add_cd_file(TARGET ${module} DESTINATION reactos/system32 FOR all)
target_compile_definitions(${module} PRIVATE -DD3DX_SDK_VERSION=${__version} -D__WINESRC__ -Dcopysignf=_copysignf)
target_compile_definitions(${module} PRIVATE D3DX_SDK_VERSION=${__version} __WINESRC__ copysignf=_copysignf)
endfunction()

View file

@ -19,7 +19,7 @@ add_cd_file(TARGET frag DESTINATION reactos/system32 FOR all)
add_executable(unfrag ${UNFRAG_SOURCE})
target_link_libraries(unfrag cppstl)
set_target_cpp_properties(unfrag WITH_EXCEPTIONS)
target_compile_definitions(unfrag PRIVATE "_CUI_")
target_compile_definitions(unfrag PRIVATE _CUI_)
set_module_type(unfrag win32cui UNICODE)
add_importlibs(unfrag advapi32 msvcrt kernel32 ntdll)
add_cd_file(TARGET unfrag DESTINATION reactos/system32 FOR all)

View file

@ -13,7 +13,7 @@ add_executable(d3dx9_36_winetest
xfile.c
testlist.c
rsrc.rc)
target_compile_definitions(d3dx9_36_winetest PRIVATE -DUSE_WINE_TODOS -D__WINESRC__ -Disnan=_isnan)
target_compile_definitions(d3dx9_36_winetest PRIVATE USE_WINE_TODOS __WINESRC__ isnan=_isnan)
if(MSVC)
# Disable warning C4477 (printf format warnings)
remove_target_compile_option(d3dx9_36_winetest "/we4477")

View file

@ -13,4 +13,4 @@ list(APPEND SOURCE
zwfile.c)
add_library(rossym ${SOURCE})
add_dependencies(rossym psdk bugcodes)
target_compile_definitions(rossym INTERFACE "-D__ROS_ROSSYM__")
target_compile_definitions(rossym INTERFACE __ROS_ROSSYM__)

View file

@ -9,7 +9,7 @@ list(APPEND SOURCE
add_host_tool(mkhive ${SOURCE})
target_include_directories(mkhive PRIVATE ${REACTOS_SOURCE_DIR}/sdk/lib/rtl)
target_compile_definitions(mkhive PRIVATE -DMKHIVE_HOST)
target_compile_definitions(mkhive PRIVATE MKHIVE_HOST)
if(NOT MSVC)
target_compile_options(mkhive PRIVATE "-fshort-wchar")
endif()