From 15e741fa0490f55718bd7f009ef83f0540b9d0a1 Mon Sep 17 00:00:00 2001 From: Deve Date: Sun, 6 Jan 2019 21:35:46 +0100 Subject: [PATCH] Fixed compilation --- lib/wiiuse/src/CMakeLists.txt | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/wiiuse/src/CMakeLists.txt b/lib/wiiuse/src/CMakeLists.txt index 7003fc8e3..1dfb6dce8 100644 --- a/lib/wiiuse/src/CMakeLists.txt +++ b/lib/wiiuse/src/CMakeLists.txt @@ -85,9 +85,11 @@ set_property(TARGET PUBLIC_HEADER ${API}) -set_property(TARGET wiiuse APPEND PROPERTY - COMPILE_DEFINITIONS $<$:WITH_WIIUSE_DEBUG> -) +if(MSVC) + set_property(TARGET wiiuse APPEND PROPERTY + COMPILE_DEFINITIONS $<$:WITH_WIIUSE_DEBUG> + ) +endif() install(TARGETS wiiuse RUNTIME DESTINATION bin