File tree Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Expand file tree Collapse file tree 1 file changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -132,12 +132,26 @@ add_library(caf_mpi_static STATIC mpi_caf.c ../common/caf_auxiliary.c $<TARGET_
132
132
target_link_libraries (caf_mpi PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} )
133
133
target_link_libraries (caf_mpi_static PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LIBRARIES} )
134
134
135
+ set (CAF_SO_VERSION 0 )
136
+ if (gfortran_compiler )
137
+ if (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0 )
138
+ set (CAF_SO_VERSION 2 )
139
+ elseif (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0.0 )
140
+ set (CAF_SO_VERSION 1 )
141
+ endif ()
142
+ endif ()
143
+
135
144
set_target_properties ( caf_mpi
136
145
PROPERTIES
137
- SOVERSION ${PROJECT_VERSION.MAJOR}.${PROJECT_VERSION.MINOR }
138
- VERSION ${PROJECT_VERSION}
139
- )
146
+ SOVERSION ${CAF_SO_VERSION }
147
+ # VERSION ${PROJECT_VERSION}
148
+ )
140
149
150
+ set_target_properties ( caf_mpi_static
151
+ PROPERTIES
152
+ SOVERSION ${CAF_SO_VERSION}
153
+ # VERSION ${PROJECT_VERSION}
154
+ )
141
155
142
156
if (gfortran_compiler )
143
157
target_compile_options (caf_mpi INTERFACE -fcoarray=lib )
@@ -154,9 +168,6 @@ install(TARGETS caf_mpi_static EXPORT OpenCoarraysTargets
154
168
)
155
169
156
170
157
- ############### FIXME!!!!! set_target_properties(caf_mpi PROPERTIES SOVERSION 1 SONAME "libcaf_mpi.so.${OpenCoarraysVersion}")
158
-
159
-
160
171
##############################################
161
172
# Configure `caf` and `cafrun` wrapper scripts
162
173
##############################################
You can’t perform that action at this time.
0 commit comments