From 613b7127cfc84ecb0dbfcbee12f0c9776ab20cb5 Mon Sep 17 00:00:00 2001 From: Alexander Grund Date: Thu, 13 Dec 2018 10:18:42 +0100 Subject: Fix compile definitions No "-D" needed --- test/wopl-file/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'test/wopl-file/CMakeLists.txt') diff --git a/test/wopl-file/CMakeLists.txt b/test/wopl-file/CMakeLists.txt index 082f1fe..e969419 100644 --- a/test/wopl-file/CMakeLists.txt +++ b/test/wopl-file/CMakeLists.txt @@ -10,6 +10,5 @@ add_executable(WoplFile ${libADLMIDI_SOURCE_DIR}/src/wopl/wopl_file.c $) -set_target_properties(WoplFile PROPERTIES COMPILE_DEFINITIONS "GSL_THROW_ON_CONTRACT_VIOLATION") +target_compile_definitions(WoplFile PRIVATE GSL_THROW_ON_CONTRACT_VIOLATION) add_test(NAME WoplFileTest COMMAND WoplFile) - -- cgit v1.2.3