aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schneider <mail@cynapses.org>2009-06-09 10:54:48 +0000
committerAndreas Schneider <mail@cynapses.org>2009-06-09 10:54:48 +0000
commit910689126adb65b7675965ce1c1d00261ffecc4c (patch)
tree7eac7d0859144900a691441ccf0e0b138fc80b22
parent87995db8fe50580a60c7463613e181033dbb7ef1 (diff)
downloadlibssh-910689126adb65b7675965ce1c1d00261ffecc4c.tar.gz
libssh-910689126adb65b7675965ce1c1d00261ffecc4c.tar.xz
libssh-910689126adb65b7675965ce1c1d00261ffecc4c.zip
Fix cmake on BSD.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@773 7dcaeef0-15fb-0310-b436-a5af3365683c
-rw-r--r--cmake/Modules/DefineCompilerFlags.cmake6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmake/Modules/DefineCompilerFlags.cmake b/cmake/Modules/DefineCompilerFlags.cmake
index 84b771f7..26cee6c8 100644
--- a/cmake/Modules/DefineCompilerFlags.cmake
+++ b/cmake/Modules/DefineCompilerFlags.cmake
@@ -29,11 +29,11 @@ if (UNIX AND NOT WIN32)
ERROR_QUIET
OUTPUT_STRIP_TRAILING_WHITESPACE
)
- endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
+ string(REGEX REPLACE "[\r\n]" " " "${_lfs_CFLAGS}" "${${_lfs_CFLAGS}}")
- string(REGEX REPLACE "[\r\n]" " " ${_lfs_CFLAGS} "${${_lfs_CFLAGS}}")
+ add_definitions(${_lfs_CFLAGS})
+ endif (CMAKE_SIZEOF_VOID_P MATCHES "8")
- add_definitions(${_lfs_CFLAGS})
add_definitions(-Wall -Wextra -Wmissing-prototypes -Wdeclaration-after-statement -Wunused)
check_c_compiler_flag("-fstack-protector" WITH_STACK_PROTECTOR)