summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cmake/QtInternalTargets.cmake4
-rw-r--r--cmake/configure-cmake-mapping.md2
2 files changed, 5 insertions, 1 deletions
diff --git a/cmake/QtInternalTargets.cmake b/cmake/QtInternalTargets.cmake
index fb64b0fbab..6a9ba2ab4e 100644
--- a/cmake/QtInternalTargets.cmake
+++ b/cmake/QtInternalTargets.cmake
@@ -194,6 +194,10 @@ if (GCC AND CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL "9.2")
target_compile_options(PlatformCommonInternal INTERFACE $<$<COMPILE_LANGUAGE:CXX>:-Wsuggest-override>)
endif()
+if(QT_FEATURE_force_asserts)
+ target_compile_definitions(PlatformCommonInternal INTERFACE QT_FORCE_ASSERTS)
+endif()
+
if(DEFINED QT_EXTRA_DEFINES)
target_compile_definitions(PlatformCommonInternal INTERFACE ${QT_EXTRA_DEFINES})
endif()
diff --git a/cmake/configure-cmake-mapping.md b/cmake/configure-cmake-mapping.md
index 357c52a51b..62e4e1acd7 100644
--- a/cmake/configure-cmake-mapping.md
+++ b/cmake/configure-cmake-mapping.md
@@ -35,7 +35,7 @@ The effort of this is tracked in QTBUG-85373 and QTBUG-85349.
| -gdb-index | -DFEATURE_enable_gdb_index=ON | |
| -strip | | |
| -gc-binaries | -DFEATURE_gc_binaries=ON | |
-| -force-asserts | | |
+| -force-asserts | -DFEATURE_force_asserts=ON | |
| -developer-build | -DFEATURE_developer_build=ON | |
| -shared | -DBUILD_SHARED_LIBS=ON | |
| -static | -DBUILD_SHARED_LIBS=OFF | |