mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-08 14:50:10 -06:00
Merge branch 'vs-pch-compile-opts' into release-3.16
Merge-request: !4734
This commit is contained in:
@@ -2345,7 +2345,7 @@ void cmVisualStudio10TargetGenerator::OutputSourceSpecificFlags(
|
||||
pchOptions =
|
||||
this->GeneratorTarget->GetPchUseCompileOptions(config, lang);
|
||||
}
|
||||
customAndPchOptions += pchOptions;
|
||||
customAndPchOptions = cmStrCat(customAndPchOptions, ';', pchOptions);
|
||||
}
|
||||
|
||||
// if we have flags or defines for this config then
|
||||
|
||||
@@ -9,6 +9,9 @@ target_precompile_headers(foo PUBLIC
|
||||
<stdio.h>
|
||||
\"string.h\"
|
||||
)
|
||||
if(CMAKE_C_COMPILER_ID STREQUAL "MSVC")
|
||||
set_property(SOURCE foo.c APPEND PROPERTY COMPILE_OPTIONS "-WX-")
|
||||
endif()
|
||||
|
||||
add_library(bar INTERFACE)
|
||||
target_include_directories(bar INTERFACE include)
|
||||
|
||||
Reference in New Issue
Block a user