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