aboutsummaryrefslogtreecommitdiff
path: root/libcmix-crypto
diff options
context:
space:
mode:
authorDennis Brentjes <d.brentjes@gmail.com>2016-12-15 12:38:51 +0100
committerDennis Brentjes <d.brentjes@gmail.com>2016-12-15 12:38:51 +0100
commit0700ae054385610eef21ba673413811b1d9e4b64 (patch)
tree46611ba3d3c84576e053c7ff3da7fd9c72b128d0 /libcmix-crypto
parentb42cb376c32ef4182d3e7f405f50dde2641e85b0 (diff)
downloadcmix-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')
-rw-r--r--libcmix-crypto/CMakeLists.txt4
-rw-r--r--libcmix-crypto/elgamal/gcrypt/CMakeLists.txt17
2 files changed, 16 insertions, 5 deletions
diff --git a/libcmix-crypto/CMakeLists.txt b/libcmix-crypto/CMakeLists.txt
index 7fa0d29..56dd553 100644
--- a/libcmix-crypto/CMakeLists.txt
+++ b/libcmix-crypto/CMakeLists.txt
@@ -13,7 +13,7 @@ set(interface_sources
)
target_sources(cmix-crypto-interface
- INTERFACE ${interace_sources}
+ INTERFACE ${interface_sources}
)
include(curve25519_implementations)
@@ -32,7 +32,7 @@ target_sources(cmix-crypto
INTERFACE ${interface_sources}
)
-option(UseEC "Use curve25519 instead of RSA" OFF)
+option(UseEC "Use curve25519 instead of elgamal in a multiplicative group" OFF)
if(UseEC)
target_link_libraries(cmix-crypto
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