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)