summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt6
-rw-r--r--src/core/CMakeLists.txt3
2 files changed, 9 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index b5fdebc0a..e35fcf7b9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -120,6 +120,12 @@ list(APPEND libsCmakeArgs
"-DWEBENGINE_REPO_BUILD=TRUE"
"${featureList}"
)
+if (CMAKE_C_COMPILER_LAUNCHER)
+ list(APPEND libsCmakeArgs "-DCMAKE_C_COMPILER_LAUNCHER=${CMAKE_C_COMPILER_LAUNCHER}")
+endif()
+if (CMAKE_CXX_COMPILER_LAUNCHER)
+ list(APPEND libsCmakeArgs "-DCMAKE_CXX_COMPILER_LAUNCHER=${CMAKE_CXX_COMPILER_LAUNCHER}")
+endif()
if(LINUX)
set(cmd "${CMAKE_COMMAND} --build ${CMAKE_CURRENT_BINARY_DIR}/src")
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index 4df6ddc90..4619e3fa0 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -286,6 +286,9 @@ foreach(config ${configs})
elseif(${config} STREQUAL "MinSizeRel")
list(APPEND gnArgArg is_debug=false symbol_level=0 optimize_for_size=true)
endif()
+ if (CMAKE_CXX_COMPILER_LAUNCHER)
+ list(APPEND gnArgArg cc_wrapper="${CMAKE_CXX_COMPILER_LAUNCHER}")
+ endif()
list(APPEND gnArgArg
qtwebengine_target="${buildDir}/${config}:QtWebEngineCore"