File tree 18 files changed +33
-32
lines changed
18 files changed +33
-32
lines changed Original file line number Diff line number Diff line change 1
1
dist : bionic
2
- sudo : required # apt-get done in before_install.sh
3
- language : minimal
2
+ language : shell
3
+ os : linux
4
4
5
5
# Only build master or PRs merging into master
6
6
branches :
7
7
only :
8
8
- master
9
9
10
10
# List of configurations to check
11
- matrix :
11
+ jobs :
12
12
include :
13
- - os : linux
14
- env : FLIBCPP_DEV=ON GENERATOR=ninja
13
+ - env : FLIBCPP_DEV=ON GENERATOR=ninja
15
14
addons :
16
15
apt :
17
16
packages :
18
17
- python3-sphinx
19
18
- valgrind
20
- - os : linux
21
- env : FLIBCPP_DEV=OFF GENERATOR=make
19
+ - env : FLIBCPP_DEV=OFF GENERATOR=make
22
20
FLIBCPP_FORTRAN_STD=03
23
21
GCC_VERSION=8
24
- - os : linux
25
- env : FLIBCPP_DEV=OFF GENERATOR=make
22
+ - env : FLIBCPP_DEV=OFF GENERATOR=make
26
23
FLIBCPP_FORTRAN_STD=08
27
24
GCC_VERSION=9
28
25
# Build phases
Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ include("${CMAKE_CURRENT_LIST_DIR}/cmake/FlibcppVersion.cmake")
12
12
flibcpp_find_version(Flibcpp "${CMAKE_CURRENT_LIST_DIR} /cmake/git-version.txt" )
13
13
14
14
project (Flibcpp VERSION "${Flibcpp_VERSION} " LANGUAGES CXX Fortran)
15
+ cmake_policy (VERSION 3.8...3.19)
15
16
16
17
#---------------------------------------------------------------------------#
17
18
# OPTIONS
@@ -34,7 +35,6 @@ option(FLIBCPP_BUILD_TESTS "Build Flibcpp tests" ${_DEFAULT_BUILD_TESTS})
34
35
if (FLIBCPP_BUILD_TESTS OR FLIBCPP_BUILD_EXAMPLES)
35
36
set (_DEFAULT_BUILD_TESTING ON )
36
37
endif ()
37
- option (BUILD_TESTING "Enable CTest" ${_DEFAULT_BUILD_TESTING} )
38
38
39
39
#---------------------------------------------------------------------------#
40
40
# FLAGS
@@ -102,8 +102,10 @@ if(FLIBCPP_USE_SWIG)
102
102
include (UseSWIG)
103
103
endif ()
104
104
105
- # Enable testing based on BUILD_TESTING flag
106
- include (CTest)
105
+ # Load CTest if applicable
106
+ if (FLIBCPP_BUILD_TESTS OR FLIBCPP_BUILD_EXAMPLES)
107
+ include (CTest)
108
+ endif ()
107
109
108
110
#---------------------------------------------------------------------------#
109
111
# LIBRARY
Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ if(CMAKE_SCRIPT_MODE_FILE)
126
126
message (FATAL_ERROR "Run this script with "
127
127
"cmake -D GIT_VERSION_FILE=git-version.txt -P FlibcppVersion.cmake" )
128
128
endif ()
129
- flibcpp_find_version(local ${GIT_VERSION_FILE} )
129
+ flibcpp_find_version(LOCAL ${GIT_VERSION_FILE} )
130
130
message (STATUS "${LOCAL_VERSION} " )
131
131
message (STATUS "${LOCAL_VERSION_STRING} " )
132
132
endif ()
Original file line number Diff line number Diff line change @@ -9,14 +9,16 @@ cd ${BUILD}
9
9
CMAKE=cmake
10
10
${CMAKE} --version
11
11
12
+ # NOTE: gcc 10.2 incorrectly warns about logical conversions, see
13
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=96319
14
+ module load swig/4.0.2-fortran gcc/10
15
+
12
16
${CMAKE} \
13
17
-G Ninja \
14
18
-D FLIBCPP_DEV=ON \
15
- -D SWIG_EXECUTABLE=" /rnsdhpc/code/_build/swig-debug/swig" \
16
- -D SWIG_DIR=" /rnsdhpc/code/swig/Lib" \
17
19
-D BUILD_SHARED_LIBS=ON \
18
- -D CMAKE_Fortran_FLAGS=" -Wall -Wextra -Wimplicit-procedure -Wimplicit-interface -Wno-compare-reals" \
19
- -D CMAKE_CXX_FLAGS=" -Wall -Wextra -pedantic" \
20
+ -D CMAKE_Fortran_FLAGS=" -Wall -Wextra -pedantic - Wimplicit-procedure -Wimplicit-interface -Wno-compare-reals" \
21
+ -D CMAKE_CXX_FLAGS=" -Wall -Wextra -pedantic -Werror " \
20
22
-D CMAKE_INSTALL_PREFIX=" ${PREFIX} " \
21
23
${SOURCE}
22
24
ninja -v
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
Original file line number Diff line number Diff line change 1
1
! This file was automatically generated by SWIG (http://www.swig.org).
2
- ! Version 4.0.2
2
+ ! Version 4.0.2+fortran
3
3
!
4
4
! Do not make changes to this file unless you know what you are doing--modify
5
5
! the SWIG interface file instead.
Original file line number Diff line number Diff line change 1
1
/* ----------------------------------------------------------------------------
2
2
* This file was automatically generated by SWIG (http://www.swig.org).
3
- * Version 4.0.2
3
+ * Version 4.0.2+fortran
4
4
*
5
5
* This file is not intended to be easily readable and contains a number of
6
6
* coding conventions designed to improve portability and efficiency. Do not make
@@ -604,7 +604,7 @@ typedef struct {
604
604
} SwigComplex_double;
605
605
}
606
606
607
- SwigComplex_double SWIG_create_complex_double (double real, double imag) {
607
+ SWIGINTERN SwigComplex_double SWIG_create_complex_double (double real, double imag) {
608
608
SwigComplex_double result;
609
609
result.real = real;
610
610
result.imag = imag;
You can’t perform that action at this time.
0 commit comments