Skip to content

Commit 6e498f5

Browse files
authored
Fix: examples build on aarch64 (#2277)
Closes ## By Submitting this PR I confirm: - I am familiar with the [Contributing Guidelines](https://github.com/nv-morpheus/Morpheus/blob/main/docs/source/developer_guide/contributing.md). - When the PR is ready for review, new or existing tests cover these changes. - When the PR is ready for review, the documentation is up to date with these changes. Authors: - Will Killian (https://github.com/willkill07) Approvers: - David Gardner (https://github.com/dagardner-nv) URL: #2277
1 parent 096ae5c commit 6e498f5

File tree

5 files changed

+27
-3
lines changed

5 files changed

+27
-3
lines changed

examples/data_loss_prevention/dlp_stages/_lib/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515

1616
list(APPEND CMAKE_MESSAGE_CONTEXT "dlp_regex_processor")
1717

18+
if(PROJECT_IS_TOPLEVEL)
19+
find_library(MORPHEUS morpheus REQUIRED)
20+
else()
21+
set(MORPHEUS morpheus)
22+
endif()
23+
1824
morpheus_add_pybind11_module(regex_processor
1925
SOURCE_FILES
2026
"regex_processor.cpp"
2127
INCLUDE_DIRS
2228
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
2329
LINK_TARGETS
24-
morpheus
30+
${MORPHEUS}
2531
CUDA::nvtx3
2632
cudf::cudf
2733
glog::glog

examples/developer_guide/3_simple_cpp_stage/compile.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
set -x
1818
set -e
1919

20+
export CUR_DIR=${CUR_DIR:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"}
21+
cd ${CUR_DIR}
22+
2023
# Optionally can set INSTALL_PREFIX to build and install to a specific directory. Also causes cmake install to run
2124
BUILD_DIR=${BUILD_DIR:-"build"}
2225

examples/developer_guide/3_simple_cpp_stage/src/simple_cpp_stage/_lib/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,19 @@
1515

1616
list(APPEND CMAKE_MESSAGE_CONTEXT "pass_thru_cpp_stage")
1717

18+
if(PROJECT_IS_TOPLEVEL)
19+
find_library(MORPHEUS morpheus REQUIRED)
20+
else()
21+
set(MORPHEUS morpheus)
22+
endif()
23+
1824
morpheus_add_pybind11_module(pass_thru_cpp
1925
SOURCE_FILES
2026
"pass_thru.cpp"
2127
INCLUDE_DIRS
2228
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
2329
LINK_TARGETS
24-
morpheus
30+
${MORPHEUS}
2531
CUDA::nvtx3
2632
cudf::cudf
2733
glog::glog

examples/developer_guide/4_rabbitmq_cpp_stage/compile.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
set -x
1818
set -e
1919

20+
export CUR_DIR=${CUR_DIR:-"$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"}
21+
cd ${CUR_DIR}
22+
2023
# Optionally can set INSTALL_PREFIX to build and install to a specific directory. Also causes cmake install to run
2124
BUILD_DIR=${BUILD_DIR:-"build"}
2225

examples/developer_guide/4_rabbitmq_cpp_stage/src/rabbitmq_cpp_stage/_lib/CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,20 @@
1515

1616
list(APPEND CMAKE_MESSAGE_CONTEXT "rabbitmq_cpp_stage")
1717

18+
if(PROJECT_IS_TOPLEVEL)
19+
find_library(MORPHEUS morpheus REQUIRED)
20+
else()
21+
set(MORPHEUS morpheus)
22+
endif()
23+
1824
morpheus_add_pybind11_module(rabbitmq_cpp_stage
1925
SOURCE_FILES
2026
"rabbitmq_source.cpp"
2127
INCLUDE_DIRS
2228
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
2329
${SimpleAmqpClient_SOURCE_DIR}/src
2430
LINK_TARGETS
25-
morpheus
31+
${MORPHEUS}
2632
CUDA::nvtx3
2733
cudf::cudf
2834
glog::glog

0 commit comments

Comments
 (0)