forked from qt-creator/qt-creator
Help/litehtml: fix cmake build on windows
Complains that '/RTC1' and '/O2' command-line options are incompatible Change-Id: I9dc075dce2eaaf4df01791ece84a2ebd9bed04f9 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -12,8 +12,11 @@ if (EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/litehtml/CMakeLists.txt)
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE "${ORIG_FPIC}")
|
||||
# force optimized litehtml even in debug
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
||||
target_compile_options(gumbo PRIVATE -O2)
|
||||
target_compile_options(litehtml PRIVATE -O2)
|
||||
# except for windows
|
||||
if (NOT WIN32)
|
||||
target_compile_options(gumbo PRIVATE -O2)
|
||||
target_compile_options(litehtml PRIVATE -O2)
|
||||
endif()
|
||||
endif()
|
||||
else()
|
||||
find_package(litehtml REQUIRED)
|
||||
|
Reference in New Issue
Block a user