From bb8f43181783686879219846d64379a04c1430e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9B=D0=B5=D0=BE=D0=BD=D0=B8=D0=B4=20=D0=AE=D1=80=D1=8C?= =?UTF-8?q?=D0=B5=D0=B2=20=28Leonid=20Yuriev=29?= Date: Wed, 13 Apr 2022 11:05:50 +0300 Subject: [PATCH] mdbx-cmake: use `target_include_directories()` instead of `include_directories()`. --- CMakeLists.txt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 10b8c6c5e..6db245f53 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)