1
0
mirror of https://github.com/RPCS3/rpcs3.git synced 2024-11-22 02:32:36 +01:00

cmake: replace add_compile_definitions with target_compile_definitions

This commit is contained in:
oltolm 2023-08-02 00:33:45 +02:00 committed by Megamouse
parent d062fc1d31
commit 01a05502e8
4 changed files with 3 additions and 5 deletions

View File

@ -105,11 +105,6 @@ if(CCACHE_FOUND)
set(CMAKE_CXX_COMPILER_LAUNCHER ccache)
endif()
if(WIN32)
add_compile_definitions(UNICODE)
add_compile_definitions(_WIN32_WINNT=0x0602)
endif()
if(APPLE AND CMAKE_OSX_ARCHITECTURES STREQUAL "arm64")
include_directories(/opt/homebrew/include)
link_directories(/opt/homebrew/lib)

View File

@ -42,6 +42,7 @@ add_subdirectory(rpcs3qt)
if(WIN32)
add_executable(rpcs3 WIN32)
target_sources(rpcs3 PRIVATE rpcs3.rc)
target_compile_definitions(rpcs3 PRIVATE UNICODE _UNICODE)
elseif(APPLE)
add_executable(rpcs3 MACOSX_BUNDLE)
target_sources(rpcs3 PRIVATE rpcs3.icns)

View File

@ -163,6 +163,7 @@ if(WIN32)
Audio/XAudio2/XAudio2Backend.cpp
Audio/XAudio2/xaudio2_enumerator.cpp
)
target_compile_definitions(rpcs3_emu PRIVATE UNICODE _UNICODE _WIN32_WINNT=0x0602)
endif()
target_link_libraries(rpcs3_emu

View File

@ -124,6 +124,7 @@ add_library(rpcs3_ui STATIC
if(WIN32)
target_sources(rpcs3_ui PUBLIC "../windows.qrc")
target_compile_definitions(rpcs3_ui PRIVATE UNICODE _UNICODE)
endif()
set_target_properties(rpcs3_ui