Skip to content

Commit 6762256

Browse files
mannkafaianakryiko
authored andcommitted
fix: profile build issue with cmake
When CARGO exists external project blazesym will build, It not works with --features=cheader option. profile depends on blazesym, correct blazesym include directories. Signed-off-by: mannkafai <mannkafai@users.noreply.github.com>
1 parent 7f29e8b commit 6762256

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/c/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ if(CARGO_EXISTS)
4242
PREFIX blazesym
4343
SOURCE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym
4444
CONFIGURE_COMMAND ""
45-
BUILD_COMMAND cargo build --features=cheader --release
45+
BUILD_COMMAND cargo build --release
4646
BUILD_IN_SOURCE TRUE
4747
INSTALL_COMMAND ""
4848
STEP_TARGETS build
@@ -89,7 +89,7 @@ foreach(app ${apps})
8989
target_link_libraries(${app_stem} ${app_stem}_skel)
9090
if(${app_stem} STREQUAL profile)
9191
target_include_directories(${app_stem} PRIVATE
92-
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/)
92+
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/include)
9393
target_link_libraries(${app_stem}
9494
${CMAKE_CURRENT_SOURCE_DIR}/../../blazesym/target/release/libblazesym.a -lpthread -lrt -ldl)
9595
endif()

0 commit comments

Comments
 (0)