diff options
author | Eike Ziller <eike.ziller@qt.io> | 2024-02-06 15:56:59 +0100 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2024-02-12 11:35:55 +0000 |
commit | 2f28c237ae2c59e0b9102772dff6dcaf2b21ae9c (patch) | |
tree | 8b88343d326cb8110f8c368e1bc157fc362a617f | |
parent | 7071977bd53c0e5f0bc5efba55505bb898ce8136 (diff) |
Make sure that test building is actually disabled
LITEHTML_BUILD_TESTING is a CMake option(), and the "old" CMake
behavior is that the option() overrides "normal" CMake variables
instead of the other way round.
Set CMake policy CMP0077 to the new behavior, which is to allow
overriding option()s with normal CMake variables.
Change-Id: I44964700f5e6f233ffae25859d10a93290a74779
Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
-rw-r--r-- | src/CMakeLists.txt | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6535b2b..2ed3c0a 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -17,6 +17,7 @@ set(QLITEHTML_VERSION_COMPAT ${QLITEHTML_VERSION} CACHE STRING "qlitehtml compat find_package(litehtml QUIET) if(NOT TARGET litehtml AND EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/litehtml/CMakeLists.txt) + set(CMAKE_POLICY_DEFAULT_CMP0077 NEW) # make it possible to override LITEHTML_BUILD_TESTING set(ORIG_FPIC ${CMAKE_POSITION_INDEPENDENT_CODE}) set(ORIG_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS}) if (WIN32) |