Совместимость с CMake 3.7

This commit is contained in:
Andrei Astafev 2023-12-12 11:31:40 +03:00
parent c04c9900c6
commit 399a9f2464

View File

@ -33,6 +33,8 @@ function(myx_target_setup_qt TARGET_NAME)
endif() endif()
if((${CMAKE_VERSION} VERSION_GREATER "3.8.0") AND (__target_type STREQUAL "OBJECT_LIBRARY")) 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}) 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()
endif() endif()
endforeach() endforeach()