diff options
author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-05-06 16:45:23 +0200 |
---|---|---|
committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2020-05-06 18:33:43 +0200 |
commit | 3033b99b5158c12f520ac6026d26c3f77783c56d (patch) | |
tree | d09762d1ba7a6cffeb181a9fb152aba5d8d6f311 /sources/shiboken2/generator | |
parent | 514d5fda1909370e90b20b937b91463512f8d9af (diff) |
shiboken: Prepare build system for Qt 6
Introduce a version variable to the CMakeLists.
Task-number: PYSIDE-904
Change-Id: Icf823db22025f6d4ac1867ae86e9357fff824daa
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
Diffstat (limited to 'sources/shiboken2/generator')
-rw-r--r-- | sources/shiboken2/generator/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sources/shiboken2/generator/CMakeLists.txt b/sources/shiboken2/generator/CMakeLists.txt index 15b965d9d..e311d400e 100644 --- a/sources/shiboken2/generator/CMakeLists.txt +++ b/sources/shiboken2/generator/CMakeLists.txt @@ -20,7 +20,7 @@ target_include_directories(shiboken2 PRIVATE ${CMAKE_CURRENT_BINARY_DIR} ${apiextractor_SOURCE_DIR} ) -target_link_libraries(shiboken2 apiextractor Qt5::Core) +target_link_libraries(shiboken2 apiextractor Qt${QT_MAJOR_VERSION}::Core) if (NOT DISABLE_DOCSTRINGS) target_sources(shiboken2 PRIVATE qtdoc/qtdocgenerator.cpp) target_compile_definitions(shiboken2 PUBLIC DOCSTRINGS_ENABLED) |