From 0700ae054385610eef21ba673413811b1d9e4b64 Mon Sep 17 00:00:00 2001 From: Dennis Brentjes Date: Thu, 15 Dec 2016 12:38:51 +0100 Subject: Debugged CMake files which caused compiler flags to be truncated --- libcmix-crypto/elgamal/gcrypt/CMakeLists.txt | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'libcmix-crypto/elgamal/gcrypt/CMakeLists.txt') diff --git a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt index 85d532b..d8c19b8 100644 --- a/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt +++ b/libcmix-crypto/elgamal/gcrypt/CMakeLists.txt @@ -16,9 +16,20 @@ if(trace_pointers) ) endif(trace_pointers) -target_compile_options(${target_name} - PUBLIC ${Gcrypt_CFLAGS} -) +if(NOT Gcrypt_CFLAGS STREQUAL "") + IF(WIN32) + separate_arguments(flags WINDOWS_COMMAND ${Gcrypt_CFLAGS}) + else(WIN32) + separate_arguments(flags UNIX_COMMAND ${Gcrypt_CFLAGS}) + endif(WIN32) + + foreach(flag ${flags}) + target_compile_options(${target_name} + PUBLIC ${flag} + ) + endforeach(flag) +endif(NOT Gcrypt_CFLAGS STREQUAL "") + target_link_libraries(${target_name} PRIVATE elgamal-interface -- cgit v1.2.3-70-g09d2