From bd964a38b33fcd13c7ec5c07b4adf21aa8077685 Mon Sep 17 00:00:00 2001 From: Alex Zenla Date: Sat, 3 Aug 2024 22:17:22 -0700 Subject: [PATCH] no longer do a bad in CMakeLists.txt --- CMakeLists.txt | 1 - Sources/CppBackend/CMakeLists.txt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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}")