Убран путь к заголовочным файлам

This commit is contained in:
Andrei Astafev 2019-05-31 15:15:52 +03:00
parent 8d42f55508
commit 5a6bef4529

View File

@ -30,13 +30,13 @@ function(common_target_properties Name)
endif()
if(TARGET Qt5::Widgets)
set_target_properties(${Name} PROPERTIES AUTOUIC TRUE)
if(CMAKE_VERSION VERSION_LESS 3.7.99)
target_include_directories(
${Name}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/${Name}_autogen/include>
)
endif()
# if(CMAKE_VERSION VERSION_LESS 3.7.99)
# target_include_directories(
# ${Name}
# PUBLIC
# $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/${Name}_autogen/include>
# )
# endif()
endif()
if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE)
set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")