summaryrefslogtreecommitdiff
path: root/cmake
diff options
context:
space:
mode:
authorMichael Kruse <github@meinersbur.de>2021-06-20 14:20:40 -0500
committerGitHub <noreply@github.com>2021-06-20 21:20:40 +0200
commitaa179512fc69bbcdc6e24a21491263c57ec98f57 (patch)
tree72ca2749f003e5734ff0a3dc90677d93befed1c4 /cmake
parent4d7a1a3622ca566744d615e1a7984de001ef398b (diff)
downloadccache-aa179512fc69bbcdc6e24a21491263c57ec98f57.tar.gz
Use single command line arg for /FI (#869)
CMake seems to interpret /FI and its argument as two separate options. For instance, CMake de-duplicates arguments, leading any to non-first /FI flag to be removed. This might be the reason why the option is not honored with Visual Studio 16.10.2 / CMake 3.20.3. Fix by combining /FI and its argument into a single command line option.
Diffstat (limited to 'cmake')
-rw-r--r--cmake/StandardSettings.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmake/StandardSettings.cmake b/cmake/StandardSettings.cmake
index b0fa8b5f..8742be0b 100644
--- a/cmake/StandardSettings.cmake
+++ b/cmake/StandardSettings.cmake
@@ -52,7 +52,7 @@ if(CMAKE_CXX_COMPILER_ID MATCHES "^GNU|(Apple)?Clang$")
include(StdAtomic)
elseif(MSVC)
- target_compile_options(standard_settings INTERFACE /FI ${CMAKE_BINARY_DIR}/config.h)
+ target_compile_options(standard_settings INTERFACE "/FI${CMAKE_BINARY_DIR}/config.h")
target_compile_options(
standard_settings