From bec68bdb8bacacc2d3a5e7895a399d4d1688aa87 Mon Sep 17 00:00:00 2001 From: Johannes Stoelp Date: Mon, 30 May 2022 20:52:39 +0200 Subject: cmake: fix inlcude paths --- content/2022-05-30-cmake-cargo-example.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'content') diff --git a/content/2022-05-30-cmake-cargo-example.md b/content/2022-05-30-cmake-cargo-example.md index 56810e6..f6ebd0a 100644 --- a/content/2022-05-30-cmake-cargo-example.md +++ b/content/2022-05-30-cmake-cargo-example.md @@ -17,7 +17,7 @@ includes the rust crate via [add_subdirectory][cmake-add_sub] and then adds a link dependency. ```cmake -{{ include(path="2022-05-30-cmake-cargo-example/CMakeLists.txt") }} +{{ include(path="content/2022-05-30-cmake-cargo-example/CMakeLists.txt") }} ``` The more interesting bits are included in the rust crate. @@ -49,14 +49,14 @@ by the following two configurations: where to generate the C header. ```cmake -{{ include(path="2022-05-30-cmake-cargo-example/libcalc/CMakeLists.txt") }} +{{ include(path="content/2022-05-30-cmake-cargo-example/libcalc/CMakeLists.txt") }} ``` The sources referenced in this post are available [here][post-src]. This repository includes the following Makefile to build and run the calc executable. ```make -{{ include(path="2022-05-30-cmake-cargo-example/Makefile") }} +{{ include(path="content/2022-05-30-cmake-cargo-example/Makefile") }} ``` [post-src]: https://git.memzero.de/johannst/blog/src/branch/main/content/2022-05-30-cmake-cargo-example -- cgit v1.2.3