Skip to content

Commit

Permalink
Wrap the include in an if statement
Browse files Browse the repository at this point in the history
  • Loading branch information
dagardner-nv committed Jan 9, 2024
1 parent acfba28 commit 3256363
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion morpheus/_lib/cmake/libmorpheus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,12 @@ install(DIRECTORY
COMPONENT Core
)

set(code_string "include(\"\${CMAKE_CURRENT_LIST_DIR}/morpheus_utils/load.cmake\")\n")
set(code_string
[=[
if(EXISTS "\${CMAKE_CURRENT_LIST_DIR}/morpheus_utils/load.cmake")
include("\${CMAKE_CURRENT_LIST_DIR}/morpheus_utils/load.cmake")
endif()
]=])

# Need to explicitly set VERSION ${PROJECT_VERSION} here since rapids_cmake gets
# confused with the `RAPIDS_VERSION` variable we use
Expand Down

0 comments on commit 3256363

Please sign in to comment.