aboutsummaryrefslogtreecommitdiff
path: root/cmake/Modules/DefineCompilerFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Modules/DefineCompilerFlags.cmake')
-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)