diff options
author | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-02 15:52:43 +0200 |
---|---|---|
committer | Ulf Hermann <ulf.hermann@qt.io> | 2021-06-03 08:23:31 +0200 |
commit | ee66bfba39aa12419800ab9a342e470e224ea2eb (patch) | |
tree | 74870e1b870f466e3868a75447dce914fc3ae4a6 /cmake | |
parent | 4ec5622e62e6fd521e1193f1d6084901f09e7e9e (diff) |
CMake: Explicitly generate static plugin helpers into binary dir
Before, it would erroneously look for them in the source directory.
Change-Id: I6dcd3ccde3e57dba84639da2cd354c51e8a92459
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/QtExecutableHelpers.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/QtExecutableHelpers.cmake b/cmake/QtExecutableHelpers.cmake index e86a5d07ae..d1fe6e8096 100644 --- a/cmake/QtExecutableHelpers.cmake +++ b/cmake/QtExecutableHelpers.cmake @@ -243,7 +243,7 @@ function(qt_internal_add_executable name) set(class_names "${class_names_regular}${class_names_separator}${class_names_current_project}") - file(GENERATE OUTPUT ${out_file} CONTENT + file(GENERATE OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${out_file} CONTENT "// This file is auto-generated. Do not edit. #include <QtPlugin> @@ -252,7 +252,7 @@ Q_IMPORT_PLUGIN($<JOIN:${class_names},)\nQ_IMPORT_PLUGIN(>) CONDITION "$<NOT:$<STREQUAL:${class_names},>>" ) target_sources(${name} PRIVATE - "$<$<NOT:$<STREQUAL:${class_names},>>:${out_file}>" + "$<$<NOT:$<STREQUAL:${class_names},>>:${CMAKE_CURRENT_BINARY_DIR}/${out_file}>" ) target_link_libraries(${name} PRIVATE "$<TARGET_PROPERTY:${lib},_qt_initial_repo_plugins>" |