Skip to content

Commit 76fc42c

Browse files
authored
Merge pull request #293 from aminya/policy
fix: enable CMP0177 + update CI versions
2 parents 6c511c2 + ac06789 commit 76fc42c

File tree

21 files changed

+75
-70
lines changed

21 files changed

+75
-70
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,9 @@ jobs:
1515
os:
1616
- windows-2022
1717
- ubuntu-22.04
18-
- macos-13
19-
# - macos-14
18+
- macos-14
2019
compiler:
21-
- llvm
20+
- llvm-19
2221
- gcc
2322
vcvarsall:
2423
- true
@@ -63,7 +62,7 @@ jobs:
6362
cmake: true
6463
ninja: true
6564
vcpkg: true
66-
conan: 2.6.0
65+
conan: true
6766
cppcheck: true
6867
cmakelang: true
6968
clang-tidy: true

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
7777
# install vcpkg dependencies: - should be called before defining project()
7878
run_vcpkg(
7979
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
80-
VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec"
80+
VCPKG_REV "0cb95c860ea83aafc1b24350510b30dec535989a"
8181
)
8282
# Install conan dependencies: - should be called before defining project()
8383
run_conan()

cspell.config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ allowCompoundWords: true
1111
enableGlobDot: true
1212
words:
1313
- aarch
14+
- cmakelang
1415
- aminya
1516
- Amnet
1617
- anotherproj

docs/src/project_options_example.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ include(${_project_options_SOURCE_DIR}/Index.cmake)
3030
# install vcpkg dependencies: - should be called before defining project()
3131
run_vcpkg(
3232
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
33-
VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec"
33+
VCPKG_REV "0cb95c860ea83aafc1b24350510b30dec535989a"
3434
)
3535
# Install conan dependencies: - should be called before defining project()
3636
run_conan()

src/Index.cmake

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ if(POLICY CMP0141)
1818
cmake_policy(SET CMP0141 NEW)
1919
endif()
2020

21+
if(CMAKE_VERSION VERSION_GREATER_EQUAL "3.31.0")
22+
# normalize install directories
23+
cmake_policy(SET CMP0177 NEW)
24+
endif()
25+
2126
# only useable here
2227
set(ProjectOptions_SRC_DIR "${CMAKE_CURRENT_LIST_DIR}")
2328

src/Vcpkg.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Or by specifying the options
170170
171171
run_vcpkg(
172172
VCPKG_URL "https://github.com/microsoft/vcpkg.git"
173-
VCPKG_REV "86a181505ac6460f98496a79abdee6a0f49905ec"
173+
VCPKG_REV "0cb95c860ea83aafc1b24350510b30dec535989a"
174174
ENABLE_VCPKG_UPDATE
175175
)
176176

tests/emscripten/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
#endif
1414

1515
int main() {
16-
printf("hello, world!\n");
17-
return 0;
16+
printf("hello, world!\n");
17+
return 0;
1818
}

tests/install/src/another_main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
#include <mylib2/lib.hpp>
33

44
int main() {
5-
some_fun2();
6-
return some_fun2();
5+
some_fun2();
6+
return some_fun2();
77
}

tests/install/vcpkg.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "https://raw.githubusercontent.com/microsoft/vcpkg-tool/main/docs/vcpkg.schema.json",
33
"name": "another-project",
44
"version-string": "0.1.0",
5-
"builtin-baseline": "86a181505ac6460f98496a79abdee6a0f49905ec",
5+
"builtin-baseline": "0cb95c860ea83aafc1b24350510b30dec535989a",
66
"dependencies": [
77
{
88
"name": "eigen3",

tests/minimal/main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#include <fmt/core.h>
22

33
int main() {
4-
fmt::print("Hello World!");
5-
return 0;
4+
fmt::print("Hello World!");
5+
return 0;
66
}

0 commit comments

Comments
 (0)