mirror of
https://github.com/isar/libmdbx.git
synced 2025-01-04 17:54:13 +08:00
mdbx-cmake: use target_include_directories()
instead of include_directories()
.
This commit is contained in:
parent
8fb63c3675
commit
bb8f431817
@ -641,6 +641,7 @@ if(MDBX_BUILD_SHARED_LIBRARY)
|
|||||||
else()
|
else()
|
||||||
set_target_properties(mdbx-static PROPERTIES OUTPUT_NAME mdbx)
|
set_target_properties(mdbx-static PROPERTIES OUTPUT_NAME mdbx)
|
||||||
endif()
|
endif()
|
||||||
|
target_include_directories(mdbx-static INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
@ -662,6 +663,7 @@ if(MDBX_BUILD_SHARED_LIBRARY)
|
|||||||
set_target_properties(mdbx PROPERTIES LINK_FLAGS "-fvisibility=hidden")
|
set_target_properties(mdbx PROPERTIES LINK_FLAGS "-fvisibility=hidden")
|
||||||
endif()
|
endif()
|
||||||
list(APPEND MDBX_BUILD_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
|
list(APPEND MDBX_BUILD_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
|
||||||
|
target_include_directories(mdbx INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(MDBX_BUILD_SHARED_LIBRARY AND MDBX_LINK_TOOLS_NONSTATIC)
|
if(MDBX_BUILD_SHARED_LIBRARY AND MDBX_LINK_TOOLS_NONSTATIC)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user