summaryrefslogtreecommitdiff
path: root/cmake/Functions.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/Functions.cmake')
-rw-r--r--cmake/Functions.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/Functions.cmake b/cmake/Functions.cmake
index 05f83ddf1..c66e65e71 100644
--- a/cmake/Functions.cmake
+++ b/cmake/Functions.cmake
@@ -586,6 +586,7 @@ function(extract_cflag result cflag)
math(EXPR i "${i} + 1")
endwhile()
list(APPEND cflags ${CMAKE_C_FLAGS} ${CMAKE_CXX_FLAGS})
+ string(REPLACE ";" " " cflags "${cflags}")
message(DEBUG "Found cflags: ${cflags}")
if(cflags MATCHES "-${cflag}=([^ ]+)")
set(${result} ${CMAKE_MATCH_1} PARENT_SCOPE)