Skip to content

Commit 8786dcc

Browse files
committed
v0.12.0
1 parent 587e329 commit 8786dcc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

README.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ cmake_minimum_required(VERSION 3.16)
1515
# You can later set fine-grained standards for each target using `target_compile_features`
1616
# set(CMAKE_CXX_STANDARD 17)
1717
18-
# Add ProjectOptions v0.12.0
19-
# https://github.com/cpp-best-practices/ProjectOptions
18+
# Add project_options v0.12.0
19+
# https://github.com/cpp-best-practices/project_options
2020
include(FetchContent)
21-
FetchContent_Declare(projectoptions URL https://github.com/cpp-best-practices/ProjectOptions/archive/refs/tags/v0.12.0.zip)
22-
FetchContent_MakeAvailable(projectoptions)
23-
include(${projectoptions_SOURCE_DIR}/Index.cmake)
21+
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.12.0.zip)
22+
FetchContent_MakeAvailable(_project_options)
23+
include(${_project_options_SOURCE_DIR}/Index.cmake)
2424
2525
# uncomment to enable vcpkg:
2626
# # Setup vcpkg - should be called before defining project()
@@ -137,15 +137,15 @@ cmake_minimum_required(VERSION 3.16)
137137
# You can later set fine-grained standards for each target using `target_compile_features`
138138
# set(CMAKE_CXX_STANDARD 17)
139139
140-
# Add ProjectOptions v0.12.0
141-
# https://github.com/cpp-best-practices/ProjectOptions
140+
# Add project_options v0.12.0
141+
# https://github.com/cpp-best-practices/project_options
142142
include(FetchContent)
143-
FetchContent_Declare(projectoptions URL https://github.com/cpp-best-practices/ProjectOptions/archive/refs/tags/v0.12.0.zip)
144-
FetchContent_MakeAvailable(projectoptions)
145-
include(${projectoptions_SOURCE_DIR}/Index.cmake)
143+
FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/tags/v0.12.0.zip)
144+
FetchContent_MakeAvailable(_project_options)
145+
include(${_project_options_SOURCE_DIR}/Index.cmake)
146146
147147
# ❗ Add global CMake options
148-
include(${projectoptions_SOURCE_DIR}/src/GlobalOptions.cmake)
148+
include(${_project_options_SOURCE_DIR}/src/GlobalOptions.cmake)
149149
150150
# uncomment to enable vcpkg:
151151
# # Setup vcpkg - should be called before defining project()

test/CMakeLists.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ set(CMAKE_CXX_STANDARD 17)
66

77
### Add project_options
88
# include(FetchContent)
9-
# FetchContent_Declare(project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/heads/main.zip)
10-
# FetchContent_MakeAvailable(project_options)
11-
# include(${ProjectOptions_SOURCE_DIR}/Index.cmake)
9+
# FetchContent_Declare(_project_options URL https://github.com/cpp-best-practices/project_options/archive/refs/heads/main.zip)
10+
# FetchContent_MakeAvailable(_project_options)
11+
# include(${_project_options_SOURCE_DIR}/Index.cmake)
1212
include(../src/Index.cmake)
1313

1414
run_vcpkg()

0 commit comments

Comments
 (0)