diff --git a/CMLibCommonTargetProperties.cmake b/CMLibCommonTargetProperties.cmake index af9c322..d5026e6 100644 --- a/CMLibCommonTargetProperties.cmake +++ b/CMLibCommonTargetProperties.cmake @@ -24,8 +24,10 @@ function(common_target_properties Name) endif() if(TARGET Qt5::Widgets) set_target_properties(${Name} PROPERTIES AUTOUIC TRUE) - target_include_directories(${Name} PUBLIC - $) + if (CMAKE_VERSION VERSION_LESS 3.7.99) + target_include_directories(${Name} PUBLIC + $) + endif() endif() if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE) set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")