Skip to content

Commit ecb669a

Browse files
authored
Merge pull request #98 from robertodr/build-with-ninja
PCMSolver can be built with Ninja
2 parents 38d964c + faf40d4 commit ecb669a

21 files changed

+97
-44
lines changed
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

.envrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
use nix
2+
export NINJA_STATUS="[Built edge %f of %t in %e sec]"

.travis.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -136,18 +136,18 @@ before_script:
136136
- ${Fortran_COMPILER} --version
137137
- |
138138
if [[ "${RUN_DANGER}" = true ]]; then
139-
bundle install
139+
bundle install --gemfile=.ci/Gemfile
140140
fi
141141
script:
142142
- |
143143
if [[ "${RUN_DANGER}" = true ]]; then
144-
bundle exec danger
144+
BUNDLE_GEMFILE=.ci/Gemfile bundle exec danger --dangerfile=.ci/Dangerfile
145145
fi
146146
- python setup.py --cxx=${CXX_COMPILER} --cc=${C_COMPILER} --fc=${Fortran_COMPILER} --type=${BUILD_TYPE} --cmake-options='-Hprojects/CMake' ${STATIC} ${COVERAGE}
147147
- cd build
148-
- ../.scripts/ci_build.sh
149-
- python ../.scripts/ci_test.py ctest --output-on-failure --verbose
150-
- python ../.scripts/ci_print_failing.py
148+
- ../.ci/ci_build.sh
149+
- python ../.ci/ci_test.py ctest --output-on-failure --verbose
150+
- python ../.ci/ci_print_failing.py
151151
after_success:
152152
- |
153153
if [[ "${COVERAGE}" = true ]]; then

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@
1212
This can be an additional source of electrostatic potential for the calculation
1313
of the ASC.
1414
- Restored compilation for g++ < v5.1.
15+
- [Ninja](https://ninja-build.org/) can be used as a generator.
16+
Notice that at least [CMake 3.7.2](https://cmake.org/cmake/help/v3.7/generator/Ninja.html#fortran-support)
17+
**and** the [Kitware-maintained](https://github.com/Kitware/ninja) version of
18+
Ninja are required to successfully compile.
1519

1620
### Changed
1721

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
cmake_minimum_required(VERSION 2.8.10 FATAL_ERROR)
66

77
# project name
8-
project(PCMSolver)
8+
project(PCMSolver CXX C Fortran)
99

1010
# do not rebuild if rules (compiler flags) change
1111
set(CMAKE_SKIP_RULE_DEPENDENCY TRUE)

0 commit comments

Comments
 (0)