Skip to content

Commit

Permalink
mdbx-cmake: use target_include_directories() instead of `include_di…
Browse files Browse the repository at this point in the history
…rectories()`.
  • Loading branch information
erthink committed Apr 13, 2022
1 parent 8fb63c3 commit bb8f431
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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}")

################################################################################

Expand All @@ -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)
Expand Down

0 comments on commit bb8f431

Please sign in to comment.