Путь для поиска сгенерированных заголовков для CMake старее 3.8
This commit is contained in:
parent
2e6d4eb2c1
commit
8e42c87f15
@ -24,9 +24,11 @@ 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)
|
||||||
target_include_directories(${Name} PUBLIC
|
target_include_directories(${Name} PUBLIC
|
||||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}_autogen/include>)
|
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/${CMAKE_PROJECT_NAME}_autogen/include>)
|
||||||
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")
|
||||||
endif()
|
endif()
|
||||||
|
Loading…
Reference in New Issue
Block a user