summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/CompilerRTUtils.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/CompilerRTUtils.cmake b/cmake/Modules/CompilerRTUtils.cmake
index d8bbdf638..764c09e7d 100644
--- a/cmake/Modules/CompilerRTUtils.cmake
+++ b/cmake/Modules/CompilerRTUtils.cmake
@@ -355,7 +355,11 @@ function(check_link_libraries variable)
string(REGEX REPLACE "\r?\n" ";" output_lines "${COMMAND_OUTPUT}")
foreach(line IN LISTS output_lines)
if(line MATCHES "${LINKER_REGEX}" AND NOT line MATCHES "${EXCLUDE_REGEX}")
- separate_arguments(args NATIVE_COMMAND "${line}")
+ if(UNIX)
+ separate_arguments(args UNIX_COMMAND "${line}")
+ else()
+ separate_arguments(args WINDOWS_COMMAND "${line}")
+ endif()
list(GET args 0 cmd)
endif()
if("${cmd}" MATCHES "${LINKER_REGEX}")