mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 00:49:00 +08:00
eed75c0ad5
* [wxwidgets] Merge fix-patch from upstream Upstream fix:94b399418c
* [wxwidgets] Merge fix-patch from upstream Upstream fix:94b399418c
14 lines
606 B
Diff
14 lines
606 B
Diff
diff --git a/build/cmake/functions.cmake b/build/cmake/functions.cmake
|
|
index 06116384c7..f82ff941bb 100644
|
|
--- a/build/cmake/functions.cmake
|
|
+++ b/build/cmake/functions.cmake
|
|
@@ -383,7 +383,7 @@ endmacro()
|
|
# Enable cotire for target, use optional second argument for prec. header
|
|
macro(wx_target_enable_precomp target_name)
|
|
target_compile_definitions(${target_name} PRIVATE WX_PRECOMP)
|
|
- if(NOT ${ARGV1} STREQUAL "")
|
|
+ if(${ARGC} GREATER 1 AND NOT ${ARGV1} STREQUAL "")
|
|
set_target_properties(${target_name} PROPERTIES
|
|
COTIRE_CXX_PREFIX_HEADER_INIT ${ARGV1})
|
|
endif()
|