Skip to content

Commit 275747f

Browse files
authored
Merge pull request #498 from robertodr/almost-conda-pinning
Almost conda pinning
2 parents d6ef39b + 603306a commit 275747f

File tree

54 files changed

+141
-96
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+141
-96
lines changed

.appveyor.yml

Lines changed: 15 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -8,34 +8,26 @@ build:
88
cache:
99
- c:\tools\vcpkg\installed\ -> testing\dependencies\appveyor\install.bat
1010
- c:\msys64\var\cache\pacman\pkg -> testing\dependencies\appveyor\install.bat
11-
- c:\Deps\boost_1_67_0 -> testing\dependencies\appveyor\boost.bat
1211
- c:\Deps\conda\ -> testing\dependencies\appveyor\anaconda.ps1
12+
- c:\Deps\boost_1_67_0 -> testing\dependencies\appveyor\boost.bat
1313

1414
image:
15-
- Previous Visual Studio 2017
15+
- Visual Studio 2017
1616

1717
environment:
1818
# Create expected SHELL variable for pipenv.
19-
SHELL: "windows"
20-
CTEST_OUTPUT_ON_FAILURE: "1"
19+
SHELL: 'windows'
20+
CTEST_OUTPUT_ON_FAILURE: '1'
2121
matrix:
22-
- CMAKE_GENERATOR: "MSYS Makefiles"
23-
BUILDFLAGS: "VERBOSE=1"
24-
CMAKEARGS: ""
25-
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
26-
BUILDFLAGS: "/verbosity:normal"
27-
CMAKEARGS: ""
28-
- CMAKE_GENERATOR: "Ninja"
29-
BUILDFLAGS: "-v"
30-
CMAKEARGS: ""
31-
- CMAKE_GENERATOR: "MSYS Makefiles"
32-
ANACONDA_TESTS_ONLY: "1"
33-
BUILDFLAGS: "VERBOSE=1"
34-
CMAKEARGS: ""
35-
- CMAKE_GENERATOR: "Visual Studio 15 2017 Win64"
36-
ANACONDA_TESTS_ONLY: "1"
37-
BUILDFLAGS: "/verbosity:normal"
38-
CMAKEARGS: ""
22+
- CMAKE_GENERATOR: 'MSYS Makefiles'
23+
BUILDFLAGS: 'VERBOSE=1'
24+
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
25+
BUILDFLAGS: '/verbosity:normal'
26+
- CMAKE_GENERATOR: 'Ninja'
27+
BUILDFLAGS: '-v'
28+
- CMAKE_GENERATOR: 'Visual Studio 15 2017 Win64'
29+
BUILDFLAGS: '/verbosity:normal'
30+
ANACONDA_TESTS_ONLY: '1'
3931

4032
matrix:
4133
fast_finish: true
@@ -72,23 +64,9 @@ build_script:
7264
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv lock"
7365
- bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv install"
7466
- if "%ANACONDA_TESTS_ONLY%"=="1" (
75-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-04'" &&
76-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-05'"
67+
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-04'"
7768
) else (
78-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-01/recipe-*'" &&
79-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-02/recipe-*'" &&
80-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-03/recipe-*'" &&
81-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-04/recipe-*'" &&
82-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-05/recipe-*'" &&
83-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-06/recipe-*'" &&
84-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-07/recipe-*'" &&
85-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-08/recipe-*'" &&
86-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-09/recipe-*'" &&
87-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-10/recipe-*'" &&
88-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-11/recipe-0[1-3]'" &&
89-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-12/recipe-*'" &&
90-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-13/recipe-*'" &&
91-
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-14/recipe-*'"
69+
bash -c "cd /c/projects/cmake-cookbook-no-symlinks && pipenv run python testing/collect_tests.py 'chapter-01/recipe-*'"
9270
)
9371

9472
deploy: off

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Change Log
2+
3+
## [Unreleased]
4+
5+
## [Version 1.0] - 2018-09-XY
6+
7+
### Added
8+
### Changed
9+
### Deprecated
10+
### Removed
11+
### Fixed
12+
### Security
13+
14+
[Unreleased]: https://github.com/dev-cafe/cmake-cookbook/compare/v1.0...HEAD
15+
[Version 1.0]: https://github.com/dev-cafe/cmake-cookbook/releases/tag/v1.0
16+
17+
[GitHub]: https://github.com/dev-cafe/cmake-cookbook

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ published by Packt and authored by [Radovan Bast](https://github.com/bast) and
138138
- [1. Installing your project](chapter-10/recipe-01/README.md)
139139
- [2. Generating export headers](chapter-10/recipe-02/README.md)
140140
- [3. Exporting your targets](chapter-10/recipe-03/README.md)
141-
- [4. Installing a superbuild project](chapter-10/recipe-04/README.md)
141+
- [4. Installing a superbuild](chapter-10/recipe-04/README.md)
142142

143143

144144
### [Chapter 11: Packaging Projects](chapter-11/README.md)

chapter-01/recipe-01/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-01/recipe-02/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-01/recipe-03/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-01/recipe-09/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-02/recipe-03/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-02/recipe-06/cxx-example/menu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ circle-intel:
55
circle-pgi:
66
definitions:
77
- Eigen3_DIR: '/opt/eigen/share/eigen3/cmake'
8-
8+
99
travis-linux:
1010
definitions:
1111
- Eigen3_DIR: '$HOME/Deps/eigen/share/eigen3/cmake'
1212

1313
# OpenMP does not work with clang
1414
travis-osx:
15-
failing_generators:
15+
skip_generators:
1616
- 'Unix Makefiles'
1717
- 'Ninja'
1818

chapter-03/recipe-04/cxx-example/menu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# No suitable native BLAS/LAPACK with MSVC
12
appveyor-vs:
23
failing_generators:
34
- 'Visual Studio 15 2017 Win64'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OpenMP does not work with clang
22
travis-osx:
3-
failing_generators:
3+
skip_generators:
44
- 'Unix Makefiles'
55
- 'Ninja'
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# OpenMP does not work with clang
22
travis-osx:
3-
failing_generators:
3+
skip_generators:
44
- 'Unix Makefiles'
55
- 'Ninja'

chapter-03/recipe-05/fortran-example-3.5/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-03/recipe-05/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-03/recipe-06/c-example-3.5/menu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ appveyor-vs:
44
- MSMPI_INC: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Include\'
55
- MSMPI_LIB32: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\'
66
- MSMPI_LIB64: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\'
7-
7+
8+
# No suitable MPI with MSYS
89
appveyor-msys:
910
failing_generators:
1011
- 'MSYS Makefiles'

chapter-03/recipe-06/c-example/menu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ appveyor-vs:
55
- MSMPI_LIB32: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\'
66
- MSMPI_LIB64: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\'
77

8+
# No suitable MPI with MSYS
89
appveyor-msys:
910
failing_generators:
1011
- 'MSYS Makefiles'

chapter-03/recipe-06/cxx-example/menu.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ appveyor-vs:
55
- MSMPI_LIB32: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\'
66
- MSMPI_LIB64: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\'
77

8+
# No suitable MPI with MSYS
89
appveyor-msys:
910
failing_generators:
1011
- 'MSYS Makefiles'

chapter-03/recipe-07/cxx-example-3.5/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ travis-linux:
1616

1717
# OpenMP does not work with clang
1818
travis-osx:
19-
failing_generators:
19+
skip_generators:
2020
- 'Unix Makefiles'
2121
- 'Ninja'
2222

chapter-03/recipe-07/cxx-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ travis-linux:
1616

1717
# OpenMP does not work with clang
1818
travis-osx:
19-
failing_generators:
19+
skip_generators:
2020
- 'Unix Makefiles'
2121
- 'Ninja'
2222

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# No pkg-config with Visual Studio generator
12
appveyor-vs:
2-
failing_generators:
3+
skip_generators:
34
- 'Visual Studio 15 2017 Win64'

chapter-03/recipe-09/c-example/menu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1+
# No pkg-config with Visual Studio generator
12
appveyor-vs:
2-
failing_generators:
3+
skip_generators:
34
- 'Visual Studio 15 2017 Win64'
45

56
# Fails to generate imported target for ZeroMQ

chapter-05/recipe-03/cxx-example/menu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
appveyor-vs:
2-
failing_generators:
3-
- 'Visual Studio 15 2017 Win64'
2+
skip_generators:
3+
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:
66
failing_generators:

chapter-05/recipe-04/cxx-example/menu.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
appveyor-vs:
2-
failing_generators:
3-
- 'Visual Studio 15 2017 Win64'
2+
skip_generators:
3+
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:
66
failing_generators:

chapter-05/recipe-05/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-05/recipe-08/c-example-3.5/menu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# No pkg-config with Visual Studio generator
12
appveyor-vs:
2-
failing_generators:
3+
skip_generators:
34
- 'Visual Studio 15 2017 Win64'
45

6+
# UUID can't be found on MSYS
57
appveyor-msys:
68
failing_generators:
79
- 'MSYS Makefiles'

chapter-05/recipe-08/c-example/menu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
# No pkg-config with Visual Studio generator
12
appveyor-vs:
2-
failing_generators:
3+
skip_generators:
34
- 'Visual Studio 15 2017 Win64'
45

6+
# UUID can't be found on MSYS
57
appveyor-msys:
68
failing_generators:
79
- 'MSYS Makefiles'

chapter-05/recipe-09/cxx-example/menu.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ appveyor-vs:
55
- MSMPI_LIB32: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x86\'
66
- MSMPI_LIB64: 'C:\Program Files (x86)\Microsoft SDKs\MPI\Lib\x64\'
77

8+
# No suitable MPI with MSYS
89
appveyor-msys:
9-
failing_generators:
10+
skip_generators:
1011
- 'MSYS Makefiles'
1112
- 'Ninja'

chapter-06/recipe-01/fortran-c-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-06/recipe-02/fortran-c-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-06/recipe-04/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-07/recipe-09/fortran-example/menu.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:
@@ -12,3 +12,7 @@ targets:
1212
travis-linux:
1313
failing_generators:
1414
- 'Ninja'
15+
16+
travis-osx:
17+
failing_generators:
18+
- 'Ninja'

chapter-09/recipe-01/fortran-c-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-09/recipe-01/fortran-cxx-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-09/recipe-01/fortran-uuid-example-3.5/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-09/recipe-01/fortran-uuid-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-09/recipe-02/cxx-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
appveyor-vs:
2-
failing_generators:
2+
skip_generators:
33
- 'Visual Studio 15 2017 Win64'
44

55
appveyor-msys:

chapter-09/recipe-06/fortran-example/menu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ targets:
22
- test
33

44
appveyor-vs:
5-
failing_generators:
5+
skip_generators:
66
- 'Visual Studio 15 2017 Win64'
77

88
appveyor-msys:

chapter-10/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
- [1. Installing your project](recipe-01/README.md)
44
- [2. Generating export headers](recipe-02/README.md)
55
- [3. Exporting your targets](recipe-03/README.md)
6-
- [4. Installing a superbuild project](recipe-04/README.md)
6+
- [4. Installing a superbuild](recipe-04/README.md)

chapter-10/recipe-04/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Installing a superbuild project
1+
# Installing a superbuild
22

33
This recipe shows how to install a superbuild which depends on a library which
44
may or may not be available on the system.

chapter-10/recipe-04/title.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Installing a superbuild project
1+
Installing a superbuild

0 commit comments

Comments
 (0)