diff --git a/UI/CMakeLists.txt b/UI/CMakeLists.txt index d66e2c14f..211db3a16 100644 --- a/UI/CMakeLists.txt +++ b/UI/CMakeLists.txt @@ -82,6 +82,10 @@ set_target_properties( AUTORCC ON AUTOUIC_SEARCH_PATHS "forms;forms/source-toolbar") +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(obs PROPERTIES AUTORCC_OPTIONS "--format-version;1") +endif() + target_include_directories(obs PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR}) diff --git a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt index fb989651b..7bb1b207c 100644 --- a/UI/frontend-plugins/aja-output-ui/CMakeLists.txt +++ b/UI/frontend-plugins/aja-output-ui/CMakeLists.txt @@ -18,6 +18,11 @@ set_target_properties( AUTORCC ON AUTOUIC_SEARCH_PATHS "forms") +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(aja-output-ui PROPERTIES AUTORCC_OPTIONS + "--format-version;1") +endif() + target_sources(aja-output-ui PRIVATE forms/output.ui) target_sources( diff --git a/UI/frontend-plugins/decklink-captions/CMakeLists.txt b/UI/frontend-plugins/decklink-captions/CMakeLists.txt index 1d36b2ed7..8c8f50437 100644 --- a/UI/frontend-plugins/decklink-captions/CMakeLists.txt +++ b/UI/frontend-plugins/decklink-captions/CMakeLists.txt @@ -18,6 +18,11 @@ set_target_properties( AUTORCC ON AUTOUIC_SEARCH_PATHS "forms") +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(decklink-captions PROPERTIES AUTORCC_OPTIONS + "--format-version;1") +endif() + target_compile_features(decklink-captions PRIVATE cxx_std_17) target_sources(decklink-captions PRIVATE forms/captions.ui) diff --git a/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt b/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt index dada95b75..64e9ae72f 100644 --- a/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt +++ b/UI/frontend-plugins/decklink-output-ui/CMakeLists.txt @@ -16,6 +16,11 @@ set_target_properties( AUTORCC ON AUTOUIC_SEARCH_PATHS "forms") +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(decklink-output-ui PROPERTIES AUTORCC_OPTIONS + "--format-version;1") +endif() + target_sources(decklink-output-ui PRIVATE forms/output.ui) target_sources( diff --git a/UI/frontend-plugins/frontend-tools/CMakeLists.txt b/UI/frontend-plugins/frontend-tools/CMakeLists.txt index 8797344bf..2dc7235eb 100644 --- a/UI/frontend-plugins/frontend-tools/CMakeLists.txt +++ b/UI/frontend-plugins/frontend-tools/CMakeLists.txt @@ -12,6 +12,11 @@ set_target_properties( AUTORCC ON AUTOUIC_SEARCH_PATHS "forms") +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(frontend-tools PROPERTIES AUTORCC_OPTIONS + "--format-version;1") +endif() + target_sources( frontend-tools PRIVATE forms/auto-scene-switcher.ui forms/captions.ui forms/output-timer.ui forms/scripts.ui) diff --git a/plugins/obs-vst/CMakeLists.txt b/plugins/obs-vst/CMakeLists.txt index 319c25ee9..df52be4e3 100644 --- a/plugins/obs-vst/CMakeLists.txt +++ b/plugins/obs-vst/CMakeLists.txt @@ -21,9 +21,12 @@ set_target_properties( AUTOUIC ON AUTORCC ON) -target_include_directories( - obs-vst PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} - ${CMAKE_CURRENT_BINARY_DIR}) +if(_QT_VERSION EQUAL 6 AND OS_WINDOWS) + set_target_properties(obs-vst PROPERTIES AUTORCC_OPTIONS "--format-version;1") +endif() + +target_include_directories(obs-vst PRIVATE ${CMAKE_CURRENT_SOURCE_DIR} + ${CMAKE_CURRENT_BINARY_DIR}) target_sources( obs-vst @@ -33,8 +36,7 @@ target_sources( target_link_libraries(obs-vst PRIVATE OBS::libobs Qt::Widgets) -target_include_directories( - obs-vst PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/headers) +target_include_directories(obs-vst PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/headers) target_compile_features(obs-vst PRIVATE cxx_std_17)