diff --git a/CMakeLists.txt b/CMakeLists.txt index b7ad2a7..85d7af1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -101,7 +101,7 @@ else() endif() if(APPLE) - add_definitions(-DJUCI_LIBCLANG_LIBRARY="${LIBCLANG_LIBRARIES}") + add_definitions(-DLIBCLANG_LIBRARY_DIR="${LIBCLANG_LIBRARY_DIR}") endif() set(BUILD_TESTING_SAVED ${BUILD_TESTING}) diff --git a/src/compile_commands.cpp b/src/compile_commands.cpp index 32641b0..fdb7c73 100644 --- a/src/compile_commands.cpp +++ b/src/compile_commands.cpp @@ -141,7 +141,7 @@ std::vector CompileCommands::get_arguments(const boost::filesystem: #if defined(__APPLE__) static auto resource_path = []() -> std::string { boost::system::error_code ec; - for(boost::filesystem::directory_iterator it(boost::filesystem::path(JUCI_LIBCLANG_LIBRARY).parent_path() / "clang", ec), end; it != end; ++it) + for(boost::filesystem::directory_iterator it(boost::filesystem::path(LIBCLANG_LIBRARY_DIR) / "clang", ec), end; it != end; ++it) return it->path().string(); return {}; }();