forked from qt-creator/qt-creator
CMake: Fix compilation with Qt 5.15.x and MSVC
The code was replacing the existing COMPILE_OPTIONS property and
therefore fail to build when PCH was enabled.
Amends 9d6b8727ee
Change-Id: I5c530517d1acc899ac375119ce0741a05ee52cea
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
@@ -68,7 +68,7 @@ elseif(MSVC)
|
|||||||
set(big_obj_compile_option "/bigobj")
|
set(big_obj_compile_option "/bigobj")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
extend_qtc_plugin(ClangCodeModel
|
if(big_obj_compile_option)
|
||||||
CONDITION DEFINED big_obj_compile_option
|
set_property(TARGET ClangCodeModel
|
||||||
PROPERTIES COMPILE_OPTIONS ${big_obj_compile_option}
|
APPEND PROPERTY COMPILE_OPTIONS ${big_obj_compile_option})
|
||||||
)
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user