aboutsummaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-10-02 20:19:48 +0200
committerAndreas Schneider <mail@cynapses.org>2009-10-02 20:19:48 +0200
commite78334688fa510a5c859b0367d4d4779efae518a (patch)
tree8175c2137a67fa42ea80a1e82b21ebb751088dfc /cmake
parent566fda70a53568cc10d4705c84547b44a8379c7e (diff)
downloadlibssh-e78334688fa510a5c859b0367d4d4779efae518a.tar.gz
libssh-e78334688fa510a5c859b0367d4d4779efae518a.tar.xz
libssh-e78334688fa510a5c859b0367d4d4779efae518a.zip
Fixed setting of LFS CFLAGS.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 112449b..1ec2cf9 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -46,8 +46,10 @@ if (UNIX AND NOT WIN32)
OUTPUT_STRIP_TRAILING_WHITESPACE
)
endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
- string(REGEX REPLACE "[\r\n]" " " "${_lfs_CFLAGS}" "${${_lfs_CFLAGS}}")
- add_definitions(${_lfs_CFLAGS})
+ if (_lfs_CFLAGS)
+ string(REGEX REPLACE "[\r\n]" " " "${_lfs_CFLAGS}" "${${_lfs_CFLAGS}}")
+ add_definitions(${_lfs_CFLAGS})
+ endif (_lfs_CFLAGS)
endif (UNIX AND NOT WIN32)