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

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() endif()
if(TARGET Qt5::Widgets) if(TARGET Qt5::Widgets)
set_target_properties(${Name} PROPERTIES AUTOUIC TRUE) set_target_properties(${Name} PROPERTIES AUTOUIC TRUE)
if(CMAKE_VERSION VERSION_LESS 3.7.99) # if(CMAKE_VERSION VERSION_LESS 3.7.99)
target_include_directories( # target_include_directories(
${Name} # ${Name}
PUBLIC # PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/${Name}_autogen/include> # $<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/${Name}_autogen/include>
) # )
endif() # endif()
endif() endif()
if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE) if(CMAKE_CXX_COMPILER_IS_GCC AND NOT APPLE)
set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed") set_target_properties(${Name} PROPERTIES LINK_FLAGS "-Wl,--no-as-needed")