Skip to content

Commit

Permalink
Correct SOVERSION. Remove protocol version from CMake
Browse files Browse the repository at this point in the history
  • Loading branch information
Kooky089 committed Feb 7, 2021
1 parent cbc726d commit 60db126
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
cmake_minimum_required(VERSION 3.8)

set(MMA_VERSION 1.0.0)
set(MMA_PROTOCOL_VERSION 1)
set(MMA_SO_VERSION 1)
# don't use lowercase "mma_VERSION", as it is generated by CMake

project(mma VERSION ${MMA_VERSION} LANGUAGES C)

set(CMI_DOWNLOAD_TAG 88db46577abfbf624de26c300eb04b741d036493)
Expand Down
2 changes: 1 addition & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ add_library(mma SHARED
target_include_directories(mma PUBLIC "../include")
target_include_directories(mma PUBLIC "${CMAKE_CURRENT_BINARY_DIR}")
target_link_libraries(mma PUBLIC CMI::MPI_C)
set_target_properties(mma PROPERTIES VERSION ${MMA_VER} SOVERSION ${MMA_SO_VER})
set_target_properties(mma PROPERTIES VERSION ${MMA_VERSION} SOVERSION ${MMA_SO_VERSION})

# Generate platform header
include(CheckIncludeFiles)
Expand Down
2 changes: 1 addition & 1 deletion src/mma.c
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ int mma_initialize() {
int min_rank;
int exe_id;
int already_initialized_mpi;
int mma_local_version = MMA_PROTOCOL_VERSION;
int mma_local_version = 1; /* protocol version */
int mma_global_version = 0;

MPI_Initialized(&already_initialized_mpi);
Expand Down
2 changes: 0 additions & 2 deletions src/mma_config.h.in
Original file line number Diff line number Diff line change
@@ -1,3 +1 @@
#cmakedefine HAVE_WINDOWS_H 1

#define MMA_PROTOCOL_VERSION @MMA_PROTOCOL_VERSION@

0 comments on commit 60db126

Please sign in to comment.