diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f37254..a8a2e93 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,5 +7,4 @@ list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules") include(InitializeSwift) include(AddSwift) -include_directories("${CMAKE_CURRENT_SOURCE_DIR}/Sources/CppBackend") add_subdirectory(Sources) diff --git a/Sources/CppBackend/CMakeLists.txt b/Sources/CppBackend/CMakeLists.txt index 6028792..3458033 100644 --- a/Sources/CppBackend/CMakeLists.txt +++ b/Sources/CppBackend/CMakeLists.txt @@ -2,3 +2,4 @@ add_library(CppBackend STATIC backend.h backend.cpp) set_target_properties(CppBackend PROPERTIES Swift_MODULE_NAME "CppBackend") target_compile_options(CppBackend PUBLIC "$<$:-cxx-interoperability-mode=default>") +target_include_directories(CppBackend PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}")