Commit 9b03c13 1 parent d895db8 commit 9b03c13 Copy full SHA for 9b03c13
File tree 4 files changed +14
-0
lines changed
morpheus/morpheus/_lib/cmake
morpheus_llm/morpheus_llm/_lib/cmake
4 files changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ set(CMAKE_INSTALL_RPATH "$ORIGIN")
38
38
39
39
# Set the option prefix to match the outer project before including. Must be before find_package(morpheus)
40
40
set (OPTION_PREFIX "MORPHEUS" )
41
+
42
+ # Set the policy to allow for CMP0144, avoids warning about MORPHEUS_ROOT being set
43
+ cmake_policy (SET CMP0144 NEW)
44
+
41
45
find_package (morpheus REQUIRED)
42
46
43
47
morpheus_utils_initialize_cpm(MORPHEUS_CACHE_DIR)
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
38
38
39
39
# Set the option prefix to match the outer project before including. Must be before find_package(morpheus)
40
40
set (OPTION_PREFIX "MORPHEUS" )
41
+
42
+ # Set the policy to allow for CMP0144, avoids warning about MORPHEUS_ROOT being set
43
+ cmake_policy (SET CMP0144 NEW)
44
+
41
45
find_package (morpheus REQUIRED)
42
46
43
47
morpheus_utils_initialize_cpm(MORPHEUS_CACHE_DIR)
Original file line number Diff line number Diff line change @@ -112,6 +112,9 @@ add_dependencies(morpheus ${cudf_helpers_target})
112
112
# In debug mode, dont allow missing symbols
113
113
target_link_options (morpheus PUBLIC "$<$<CONFIG:Debug>:-Wl,--no-allow-shlib-undefined>" )
114
114
115
+ # Avoid warning from the lto-wrapper about serial compilation
116
+ target_link_options (morpheus PUBLIC "-flto=auto" )
117
+
115
118
# Generates an include file for specifying external linkage since everything is hidden by default
116
119
generate_export_header(morpheus
117
120
NO_EXPORT_MACRO_NAME
Original file line number Diff line number Diff line change @@ -60,6 +60,9 @@ target_include_directories(morpheus_llm
60
60
# In debug mode, dont allow missing symbols
61
61
target_link_options (morpheus_llm PUBLIC "$<$<CONFIG:Debug>:-Wl,--no-allow-shlib-undefined>" )
62
62
63
+ # Avoid warning from the lto-wrapper about serial compilation
64
+ target_link_options (morpheus_llm PUBLIC "-flto=auto" )
65
+
63
66
# Ideally, we dont use glob here. But there is no good way to guarantee you dont miss anything like *.cpp
64
67
file (GLOB_RECURSE morpheus_llm_public_headers
65
68
LIST_DIRECTORIES FALSE
You can’t perform that action at this time.
0 commit comments