Skip to content

Commit

Permalink
Allow specification of a CMake root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Pencilcaseman committed May 29, 2024
1 parent bf26c55 commit 1e8ef10
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "sccmod"
authors = ["Toby Davis \"Pencilcaseman\""]
version = "0.2.2"
version = "0.2.3"
edition = "2021"
readme = "README.md"
license = "MIT OR Apache-2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/builders/cmake.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use crate::{builders::builder_trait::BuilderImpl, log, shell::Shell};
use crate::{builders::builder_trait::BuilderImpl, file_manager::PATH_SEP, log, shell::Shell};
use pyo3::prelude::PyAnyMethods;
use pyo3::{Bound, PyAny};
use std::{fs, path, path::Path};
Expand Down Expand Up @@ -156,7 +156,7 @@ impl BuilderImpl for CMake {
dependencies: &[String],
) -> Result<(), String> {
let cmake_source_path = if let Some(root) = &self.cmake_root {
source_path.as_ref().to_str().unwrap().to_owned() + root
source_path.as_ref().to_str().unwrap().to_owned() + PATH_SEP.to_string().as_ref() + root
} else {
source_path.as_ref().to_str().unwrap().to_owned()
};
Expand Down

0 comments on commit 1e8ef10

Please sign in to comment.