-
Notifications
You must be signed in to change notification settings - Fork 197
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raft-config is idempotent no matter RAFT_COMPILE_LIBRARIES value (#516)
This allows us to correctly handle raft with and without compiled libraries. Authors: - Robert Maynard (https://github.com/robertmaynard) Approvers: - Corey J. Nolet (https://github.com/cjnolet) URL: #516
- Loading branch information
1 parent
1409002
commit 98d60db
Showing
3 changed files
with
14 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,7 +40,8 @@ foreach(lang IN LISTS rapids_global_languages) | |
endforeach() | ||
unset(rapids_global_languages) | ||
|
||
set(rapids_allowed_components @RAPIDS_COMPONENTS@) | ||
set(rapids_base_components @RAPIDS_COMPONENTS@) | ||
set(rapids_allowed_components ${rapids_base_components}) | ||
|
||
if(EXISTS "${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
@@ -50,6 +51,7 @@ foreach(comp IN LISTS rapids_allowed_components) | |
# this way if a dependency can't be found we fail | ||
if(${comp} IN_LIST @project_name@_FIND_COMPONENTS) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@project_name@-${comp}-dependencies.cmake" OPTIONAL) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@project_name@-${comp}-lib-dependencies.cmake" OPTIONAL) | ||
endif() | ||
endforeach() | ||
|
||
|
@@ -58,6 +60,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]" OPTIONAL) | |
foreach(comp IN LISTS rapids_allowed_components) | ||
if(${comp} IN_LIST @project_name@_FIND_COMPONENTS) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@project_name@-${comp}-targets.cmake" OPTIONAL) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@project_name@-${comp}-lib-targets.cmake" OPTIONAL) | ||
set(@project_name@_${comp}_FOUND TRUE) | ||
endif() | ||
endforeach() | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters