Created
May 26, 2022 21:12
-
-
Save Alessandro-Barbieri/1141ce90306112a3926f1345fb244580 to your computer and use it in GitHub Desktop.
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
--- a/FORTRAN/CMakeLists.txt | |
+++ b/FORTRAN/CMakeLists.txt | |
@@ -15,8 +15,9 @@ | |
list(APPEND sources c2f_zcreate_matrix_x_b.c superlu_c2f_zwrap.c) | |
endif() | |
-add_library(superlu_dist_fortran ${sources}) | |
-add_library(superlu_dist_fortran-static STATIC ${sources}) | |
+add_library(superlu_dist_fortran_obj OBJECT ${sources}) | |
+add_library(superlu_dist_fortran $<TARGET_OBJECTS:superlu_dist_fortran_obj>) | |
+add_library(superlu_dist_fortran-static STATIC $<TARGET_OBJECTS:superlu_dist_fortran_obj>) | |
# set(targets superlu_dist_fortran) | |
get_target_property(superlu_dist_version superlu_dist VERSION) | |
get_target_property(superlu_dist_soversion superlu_dist SOVERSION) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment