diff options
author | Robert Adam <dev@robert-adam.de> | 2021-05-06 09:26:56 +0300 |
---|---|---|
committer | Robert Adam <dev@robert-adam.de> | 2021-05-11 19:24:30 +0300 |
commit | d20579d6eb4d68f299410ea9bbe085b55c218960 (patch) | |
tree | 69c1dabd3c3ea9ba6ef1c396181ae50771aa8a5c /cmake | |
parent | adef045be3497ebf29136884f3e236a0ddf05d1b (diff) |
BUILD(cmake): Fix usage of set_property
We used this function to set multiple properties at once which is not
supported. Instead what happens is that the first referenced property is
populated with a list of values (the following words in the set_property
function).
Thus the set_property call had to be separated into two individual calls
each setting only a single property to the desired value.
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/qt-utils.cmake | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cmake/qt-utils.cmake b/cmake/qt-utils.cmake index c8ed212c3..0f92ff120 100644 --- a/cmake/qt-utils.cmake +++ b/cmake/qt-utils.cmake @@ -7,7 +7,8 @@ function(include_qt_plugin TARGET SCOPE PLUGIN) set(PATH "${CMAKE_CURRENT_BINARY_DIR}/${TARGET}_plugin_import.cpp") if(NOT EXISTS ${PATH}) file(WRITE ${PATH} "#include <QtPlugin>\n") - set_property(SOURCE ${PATH} PROPERTY GENERATED TRUE SKIP_AUTOGEN TRUE) + set_property(SOURCE ${PATH} PROPERTY GENERATED TRUE) + set_property(SOURCE ${PATH} PROPERTY SKIP_AUTOGEN TRUE) else() file(READ ${PATH} CONTENT) string(FIND ${CONTENT} ${PLUGIN} INDEX) |