diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-10-27 21:40:13 +0300 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2021-10-29 10:36:50 +0000 |
commit | 38f233502e32112e15179420da86d6e6afb79b24 (patch) | |
tree | d0c33d87956f54f418c7b219a84f8a67c6fe9d8d /src | |
parent | b035d081fed2cb5c1a90cd609011955a1d587472 (diff) | |
download | qbs-38f233502e32112e15179420da86d6e6afb79b24.tar.gz |
cmake: fix Windows build
Do not use add_qbs_library as it does not support
INTERFACE libraries.
Change-Id: Ie7b09a4fa620c8030a4130d6b5919009688811a7
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r-- | src/shared/variant/CMakeLists.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/shared/variant/CMakeLists.txt b/src/shared/variant/CMakeLists.txt index 5b2ccfb11..ac73231d4 100644 --- a/src/shared/variant/CMakeLists.txt +++ b/src/shared/variant/CMakeLists.txt @@ -1,4 +1,4 @@ -add_qbs_library(qbsvariant - INTERFACE - SOURCES variant.h variant.hpp - ) +add_library(qbsvariant INTERFACE) +target_include_directories( + qbsvariant + INTERFACE $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/>) |