Skip to content

Commit

Permalink
Compile googletest as static libraries (#187)
Browse files Browse the repository at this point in the history
Additional changes: fix gcc version on daint to 5.3
  • Loading branch information
havogt authored Jan 10, 2019
1 parent 372204c commit 387c4a7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
set(CMAKE_INSTALL_PREFIX "${CMAKE_CURRENT_SOURCE_DIR}/install" CACHE PATH "CMake install prefix")

cmake_policy(SET CMP0048 NEW)
project(Serialbox LANGUAGES C CXX VERSION 2.5.0)
project(Serialbox LANGUAGES C CXX VERSION 2.5.1)
cmake_minimum_required(VERSION 3.9.0)

set(CMAKE_CXX_EXTENSIONS OFF)
Expand Down Expand Up @@ -183,7 +183,10 @@ include(IDESupport)

#---------------------------------------- GTest ----------------------------------------------------
if(SERIALBOX_TESTING)
set(tmp_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(external/googletest)
set(BUILD_SHARED_LIBS ${tmp_BUILD_SHARED_LIBS})

if(SERIALBOX_ENABLE_C)
set(SERIALBOX_HAS_C 1)
Expand Down
1 change: 1 addition & 0 deletions tools/cscs-scripts/env_daint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ elif [ "$FC_COMPILER" = "pgfortran18.10" ]; then
FC_COMPILER="pgfortran"
else
module swap PrgEnv-cray PrgEnv-gnu
module swap gcc gcc/5.3.0
# module load cray-netcdf
# module load cray-hdf5
# export NETCDF_ROOT=${NETCDF_DIR}
Expand Down

0 comments on commit 387c4a7

Please sign in to comment.