From 399a9f2464a5564ef9a1bbde65de1bc12f2b5dde Mon Sep 17 00:00:00 2001 From: Andrei Astafev Date: Tue, 12 Dec 2023 11:31:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B2=D0=BC=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=B8=D0=BC=D0=BE=D1=81=D1=82=D1=8C=20=D1=81=20CMake=203.7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MyxCMake/lib/TargetSetupQt.cmake | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MyxCMake/lib/TargetSetupQt.cmake b/MyxCMake/lib/TargetSetupQt.cmake index 893075c..f28a6aa 100644 --- a/MyxCMake/lib/TargetSetupQt.cmake +++ b/MyxCMake/lib/TargetSetupQt.cmake @@ -33,6 +33,8 @@ function(myx_target_setup_qt TARGET_NAME) endif() if((${CMAKE_VERSION} VERSION_GREATER "3.8.0") AND (__target_type STREQUAL "OBJECT_LIBRARY")) target_link_libraries(${TARGET_NAME} PUBLIC Qt${myx_qt_ver}::${iter}) + else() + target_include_directories(${TARGET_NAME} PUBLIC ${Qt${myx_qt_ver}${iter}_INCLUDE_DIRS}) endif() endif() endforeach() @@ -148,6 +150,6 @@ function(myx_target_setup_qt TARGET_NAME) FILES ${ARG_PUBLIC_MOC} DESTINATION ${CMAKE_INSTALL_PREFIX} COMPONENT DEV - ) + ) endif() endfunction()