aboutsummaryrefslogtreecommitdiff
path: root/CMakeModules
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 /CMakeModules
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 'CMakeModules')
-rw-r--r--CMakeModules/FindGcrypt.cmake8
1 files changed, 4 insertions, 4 deletions
diff --git a/CMakeModules/FindGcrypt.cmake b/CMakeModules/FindGcrypt.cmake
index 1b4e8c8..46b135f 100644
--- a/CMakeModules/FindGcrypt.cmake
+++ b/CMakeModules/FindGcrypt.cmake
@@ -10,13 +10,13 @@ FIND_PROGRAM(libgcrypt_config_executable NAMES libgcrypt-config)
# if libgcrypt-config has been found
IF(libgcrypt_config_executable)
- EXEC_PROGRAM(${libgcrypt_config_executable} ARGS --libs RETURN_VALUE _return_VALUE OUTPUT_VARIABLE Gcrypt_LIBRARIES)
+ execute_process(COMMAND ${libgcrypt_config_executable} --libs RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE Gcrypt_LIBRARIES OUTPUT_STRIP_TRAILING_WHITESPACE)
- EXEC_PROGRAM(${libgcrypt_config_executable} ARGS --cflags RETURN_VALUE _return_VALUE OUTPUT_VARIABLE Gcrypt_CFLAGS)
+ execute_process(COMMAND ${libgcrypt_config_executable} --cflags RESULT_VARIABLE _return_VALUE OUTPUT_VARIABLE Gcrypt_CFLAGS OUTPUT_STRIP_TRAILING_WHITESPACE)
- IF(Gcrypt_LIBRARIES AND Gcrypt_CFLAGS)
+ IF(Gcrypt_LIBRARIES)
SET(Gcrypt_FOUND TRUE)
- ENDIF(Gcrypt_LIBRARIES AND Gcrypt_CFLAGS)
+ ENDIF(Gcrypt_LIBRARIES)
ENDIF(libgcrypt_config_executable)