-
Notifications
You must be signed in to change notification settings - Fork 371
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
411cd4a
commit 9ec3697
Showing
6 changed files
with
39 additions
and
44 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 |
---|---|---|
|
@@ -34,13 +34,20 @@ find_dependency(yaml-cpp) | |
if(NOT (TARGET libmamba OR TARGET libmamba-static)) | ||
include("${CMAKE_CURRENT_LIST_DIR}/@[email protected]") | ||
|
||
if (TARGET libmamba-static) | ||
if (TARGET mamba::libmamba-dyn) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR libmamba INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_LIBRARY libmamba LOCATION) | ||
endif() | ||
|
||
if (TARGET mamba::libmamba-static) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR libmamba-static INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_STATIC_LIBRARY libmamba-static LOCATION) | ||
endif () | ||
endif() | ||
|
||
if(BUILD_SHARED_LIBS AND TARGET mamba::libmamba-dyn) | ||
add_library(mamba::libmamba ALIAS mamba::libmamba-dyn) | ||
else() | ||
add_library(mamba::libmamba ALIAS mamba::libmamba-static) | ||
endif() | ||
|
||
if (TARGET libmamba) | ||
get_target_property(@PROJECT_NAME@_INCLUDE_DIR libmamba INTERFACE_INCLUDE_DIRECTORIES) | ||
get_target_property(@PROJECT_NAME@_LIBRARY libmamba LOCATION) | ||
endif () | ||
endif() |
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
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