Skip to content

Commit aea5807

Browse files
committed
Bump SOVERSION if GFortran >= 8.x
ABI Changes on the GFortran side necesitate OC ABI changes Fixes #489
1 parent 7b6da6a commit aea5807

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/mpi/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ target_link_libraries(caf_mpi_static PRIVATE ${MPI_C_LIBRARIES} ${MPI_Fortran_LI
158158

159159
set(CAF_SO_VERSION 0)
160160
if(gfortran_compiler)
161-
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
161+
if(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0.0)
162+
set(CAF_SO_VERSION 3)
163+
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 7.0.0)
162164
set(CAF_SO_VERSION 2)
163165
elseif(NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 6.0.0)
164166
set(CAF_SO_VERSION 1)

0 commit comments

Comments
 (0)