diff options
| author | Dennis Brentjes <d.brentjes@gmail.com> | 2016-12-15 12:38:51 +0100 |
|---|---|---|
| committer | Dennis Brentjes <d.brentjes@gmail.com> | 2016-12-15 12:38:51 +0100 |
| commit | 0700ae054385610eef21ba673413811b1d9e4b64 (patch) | |
| tree | 46611ba3d3c84576e053c7ff3da7fd9c72b128d0 /libcmix-crypto/elgamal | |
| parent | b42cb376c32ef4182d3e7f405f50dde2641e85b0 (diff) | |
| download | cmix-0700ae054385610eef21ba673413811b1d9e4b64.tar.gz cmix-0700ae054385610eef21ba673413811b1d9e4b64.tar.bz2 cmix-0700ae054385610eef21ba673413811b1d9e4b64.zip | |
Debugged CMake files which caused compiler flags to be truncated
Diffstat (limited to 'libcmix-crypto/elgamal')
| -rw-r--r-- | libcmix-crypto/elgamal/gcrypt/CMakeLists.txt | 17 |
1 files changed, 14 insertions, 3 deletions
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 |
