From 5514680bc8917a9b4266985069556b16edb6c35e Mon Sep 17 00:00:00 2001 From: Florent Castelli Date: Wed, 8 Mar 2017 06:31:02 +0100 Subject: [PATCH] cmake: Fix typo in dolphin_compile_definitions --- CMake/DolphinCompileDefinitions.cmake | 2 +- CMakeLists.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMake/DolphinCompileDefinitions.cmake b/CMake/DolphinCompileDefinitions.cmake index 7368f921f0..d150cb535c 100644 --- a/CMake/DolphinCompileDefinitions.cmake +++ b/CMake/DolphinCompileDefinitions.cmake @@ -30,5 +30,5 @@ function(dolphin_compile_definitions) endif() set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS - "$<${genexp_config_test}:${ARGN}>") + "$<${genexp_config_test}:${defs}>") endfunction() diff --git a/CMakeLists.txt b/CMakeLists.txt index a2a6d1d051..eccaa86d60 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -206,7 +206,7 @@ endif() if(CMAKE_C_COMPILER_ID MATCHES "MSVC") check_and_add_flag(EXCEPTIONS /EHsc) - dolphin_compile_definitions(-D_DEBUG DEBUG_ONLY) + dolphin_compile_definitions(_DEBUG DEBUG_ONLY) string(APPEND CMAKE_EXE_LINKER_FLAGS " /NXCOMPAT") string(APPEND CMAKE_EXE_LINKER_FLAGS " /BASE:0x00400000")