-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: JonLiu1993 <[email protected]>
- Loading branch information
1 parent
d143977
commit 01be99f
Showing
5 changed files
with
42 additions
and
13 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
diff --git a/src/anari/CMakeLists.txt b/src/anari/CMakeLists.txt | ||
index 6a34153..ee572a1 100644 | ||
--- a/src/anari/CMakeLists.txt | ||
+++ b/src/anari/CMakeLists.txt | ||
@@ -51,7 +51,12 @@ project_compile_definitions(PRIVATE -Danari_EXPORTS) | ||
## Create main shared + static library targets ## | ||
|
||
project(anari) | ||
-add_anari_frontend_library_target(SHARED) | ||
+if(BUILD_SHARED_LIBS) | ||
+ add_anari_frontend_library_target(SHARED) | ||
+else() | ||
+ add_anari_frontend_library_target(STATIC) | ||
+ project_compile_definitions(PUBLIC -DANARI_STATIC_DEFINE) | ||
+endif() | ||
|
||
project(anari_static) | ||
add_anari_frontend_library_target(STATIC) |
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