summaryrefslogtreecommitdiff
path: root/Modules/CMakeRCInformation.cmake
diff options
context:
space:
mode:
authorZsolt Parragi <zsolt.parragi@cancellar.hu>2019-02-21 20:00:38 +0100
committerBrad King <brad.king@kitware.com>2019-02-27 08:39:02 -0500
commit1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3 (patch)
treea8d5098b79884386177fe13750afa76dedaab571 /Modules/CMakeRCInformation.cmake
parentfa339ced67d14bb608b2a71c37c3b99d90941d47 (diff)
downloadcmake-1a281a1acdcce3d6ce5a2a37fc4e0f6ab77ff0c3.tar.gz
RC: Pass output file in a way that llvm-rc 7 and below understand
Prior to LLVM 8.0, `llvm-rc` does not recognize `/fo` without a space after it. Add the space unconditionally because MS `rc` accepts it too. Issue: #18957
Diffstat (limited to 'Modules/CMakeRCInformation.cmake')
-rw-r--r--Modules/CMakeRCInformation.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/CMakeRCInformation.cmake b/Modules/CMakeRCInformation.cmake
index 1227fdf263..7bf6567752 100644
--- a/Modules/CMakeRCInformation.cmake
+++ b/Modules/CMakeRCInformation.cmake
@@ -32,7 +32,7 @@ set(CMAKE_INCLUDE_FLAG_RC "-I")
# compile a Resource file into an object file
if(NOT CMAKE_RC_COMPILE_OBJECT)
set(CMAKE_RC_COMPILE_OBJECT
- "<CMAKE_RC_COMPILER> <DEFINES> <INCLUDES> <FLAGS> /fo<OBJECT> <SOURCE>")
+ "<CMAKE_RC_COMPILER> <DEFINES> <INCLUDES> <FLAGS> /fo <OBJECT> <SOURCE>")
endif()
# set this variable so we can avoid loading this more than once.