Добавлен путь для поиска заголовочных файлов
This commit is contained in:
parent
2051f51a29
commit
1b47d92e15
@ -41,6 +41,7 @@ function(myx_cmake_common_target_properties target)
|
|||||||
target_include_directories(
|
target_include_directories(
|
||||||
${target}
|
${target}
|
||||||
PUBLIC $<INSTALL_INTERFACE:include>
|
PUBLIC $<INSTALL_INTERFACE:include>
|
||||||
|
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/src>
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
||||||
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}>
|
||||||
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
|
$<BUILD_INTERFACE:${CMAKE_BINARY_DIR}/include>)
|
||||||
@ -67,8 +68,6 @@ function(myx_cmake_common_target_properties target)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(_target_type STREQUAL OBJECT_LIBRARY)
|
if(_target_type STREQUAL OBJECT_LIBRARY)
|
||||||
# target_include_directories(${target} PUBLIC
|
|
||||||
# $<INSTALL_INTERFACE:include/${target}>)
|
|
||||||
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
set_target_properties(${target} PROPERTIES POSITION_INDEPENDENT_CODE ON)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user