forked from JuliaPackaging/Yggdrasil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
OpenFHE: fix library install directory in CMake (JuliaPackaging#7880)
* OpenFHE: fix library path in CMakeTargets file * Properly fix the library install dir in upstream sources
- Loading branch information
1 parent
48a8c07
commit 37e09e1
Showing
2 changed files
with
45 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
--- a/src/binfhe/CMakeLists.txt | ||
+++ b/src/binfhe/CMakeLists.txt | ||
@@ -26,7 +26,9 @@ if ( BUILD_SHARED ) | ||
set_property(TARGET OPENFHEbinfhe PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
install(TARGETS OPENFHEbinfhe | ||
EXPORT OpenFHETargets | ||
- DESTINATION lib) | ||
+ RUNTIME DESTINATION bin | ||
+ LIBRARY DESTINATION lib | ||
+ ARCHIVE DESTINATION lib) | ||
endif() | ||
|
||
if( BUILD_STATIC ) | ||
--- a/src/core/CMakeLists.txt | ||
+++ b/src/core/CMakeLists.txt | ||
@@ -28,7 +28,9 @@ if ( BUILD_SHARED ) | ||
set_property(TARGET OPENFHEcore PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
install(TARGETS OPENFHEcore | ||
EXPORT OpenFHETargets | ||
- DESTINATION lib) | ||
+ RUNTIME DESTINATION bin | ||
+ LIBRARY DESTINATION lib | ||
+ ARCHIVE DESTINATION lib) | ||
endif() | ||
|
||
|
||
--- a/src/pke/CMakeLists.txt | ||
+++ b/src/pke/CMakeLists.txt | ||
@@ -26,7 +26,9 @@ if( BUILD_SHARED ) | ||
set_property(TARGET OPENFHEpke PROPERTY RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib) | ||
install(TARGETS OPENFHEpke | ||
EXPORT OpenFHETargets | ||
- DESTINATION lib) | ||
+ RUNTIME DESTINATION bin | ||
+ LIBRARY DESTINATION lib | ||
+ ARCHIVE DESTINATION lib) | ||
endif() | ||
|
||
if( BUILD_STATIC ) |