mirror of
https://github.com/isar/libmdbx.git
synced 2024-10-29 23:19:20 +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()
|
||||
set_target_properties(mdbx-static PROPERTIES OUTPUT_NAME mdbx)
|
||||
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")
|
||||
endif()
|
||||
list(APPEND MDBX_BUILD_FLAGS ${CMAKE_SHARED_LINKER_FLAGS})
|
||||
target_include_directories(mdbx INTERFACE "${CMAKE_CURRENT_SOURCE_DIR}")
|
||||
endif()
|
||||
|
||||
if(MDBX_BUILD_SHARED_LIBRARY AND MDBX_LINK_TOOLS_NONSTATIC)
|
||||
|
Loading…
Reference in New Issue
Block a user