From 20f0a23b9dac984c162b8234ded3883efaa3c0a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sl=C3=A1vek=20Banko?= Date: Sat, 30 Mar 2019 21:17:38 +0900 Subject: libkcal tests: small improvement to cmake code to avoid having to escape quotes. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Slávek Banko Signed-off-by: Michele Calgaro (cherry picked from commit 309e91d9d69d2fdf3ad1280688e41247621e8388) --- libkcal/tests/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'libkcal/tests/CMakeLists.txt') diff --git a/libkcal/tests/CMakeLists.txt b/libkcal/tests/CMakeLists.txt index 4ae85e5ba..143bade68 100644 --- a/libkcal/tests/CMakeLists.txt +++ b/libkcal/tests/CMakeLists.txt @@ -46,8 +46,8 @@ foreach( _test_name ${_test_executables} ) ) endforeach( ) -set_target_properties( testfields - PROPERTIES COMPILE_FLAGS -DINPUT='\"${CMAKE_CURRENT_SOURCE_DIR}/data/test_pilot.ics\"' +set_property( TARGET testfields APPEND PROPERTY + COMPILE_DEFINITIONS INPUT="${CMAKE_CURRENT_SOURCE_DIR}/data/test_pilot.ics" ) -- cgit v1.2.1