Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ FetchContent_Declare(

FetchContent_MakeAvailable(absl)

include_directories(${CMAKE_SOURCE_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR})

set(CRUBIT_SUBDIRS
support
Expand Down
5 changes: 3 additions & 2 deletions cc_bindings_from_rs/cargo-cpp_api_from_rust.rs
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,9 @@ fn main() -> Result<()> {
profile_dir = filename
.strip_prefix(&target_dir)
.ok()
.and_then(|path| path.components().next())
.map(|component| component.as_str().to_owned());
// Remove the filename from the path.
.and_then(|path| path.parent())
.map(|path| path.to_owned());
source_crate_rlib = artifact
.filenames
.iter()
Expand Down
Loading