Skip to content

Commit 398a122

Browse files
committed
v0.11.3
1 parent feb09b9 commit 398a122

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,18 @@ cmake_minimum_required(VERSION 3.16)
1717
# You can later set fine-grained standards for each target using `target_compile_features`
1818
# set(CMAKE_CXX_STANDARD 17)
1919
20-
# Add ProjectOptions v0.11.2
20+
# Add ProjectOptions v0.11.3
2121
# https://github.com/aminya/ProjectOptions
2222
include(FetchContent)
23-
FetchContent_Declare(projectoptions URL https://github.com/aminya/ProjectOptions/archive/refs/tags/v0.11.2.zip)
23+
FetchContent_Declare(projectoptions URL https://github.com/aminya/ProjectOptions/archive/refs/tags/v0.11.3.zip)
2424
FetchContent_MakeAvailable(projectoptions)
2525
include(${projectoptions_SOURCE_DIR}/Index.cmake)
2626
2727
# uncomment to enable vcpkg:
2828
# # Setup vcpkg - should be called before defining project()
2929
# run_vcpkg()
3030
31-
# Set the project name to your project name, my_project isn't very descriptive
31+
# Set the project name and language
3232
project(myproject LANGUAGES CXX)
3333
3434
# Initialize ProjectOptions
@@ -78,7 +78,7 @@ It accepts the following named flags:
7878
- `WARNINGS_AS_ERRORS`: Treat the warnings as errors
7979
- `ENABLE_CPPCHECK`: Enable static analysis with Cppcheck
8080
- `ENABLE_CLANG_TIDY`: Enable static analysis with clang-tidy
81-
- `ENABLE_IPO`: Enable Interprocedural Optimization, aka Link Time Optimization (LTO) in the release builds
81+
- `ENABLE_IPO`: Enable Interprocedural Optimization (Link Time Optimization, LTO) in the release build
8282
- `ENABLE_INCLUDE_WHAT_YOU_USE`: Enable static analysis with include-what-you-use
8383
- `ENABLE_COVERAGE`: Enable coverage reporting for gcc/clang
8484
- `ENABLE_CACHE`: Enable cache if available
@@ -119,13 +119,13 @@ A very useful function that accepts the same arguments as `target_link_libraries
119119

120120
## `target_include_system_directories` function
121121

122-
Similar to `target_include_directories`, but it suppresses the warnings. It is useful if you are including some external directories directly.
122+
Similar to `target_include_directories`, but it suppresses the warnings. It is useful if you want to include some external directories directly.
123123

124124
## Using global CMake options (⚠️ **not recommended**)
125125

126126
⚠️ It is highly recommended to keep the build declarative and reproducible by using the function arguments as explained above.
127127

128-
However, if you still want to change the CMake options on the fly (e.g. to enable sanitizers inside CI), you can include the `GlobalOptions.cmake`, which adds global options for the arguments of `ProjectOptions` function.
128+
However, if you still want to change the CMake options on the fly (e.g., to enable sanitizers inside CI), you can include the `GlobalOptions.cmake`, which adds global options for the arguments of `ProjectOptions` function.
129129

130130
<details>
131131
<summary>Click to show the example:</summary>
@@ -139,10 +139,10 @@ cmake_minimum_required(VERSION 3.16)
139139
# You can later set fine-grained standards for each target using `target_compile_features`
140140
# set(CMAKE_CXX_STANDARD 17)
141141
142-
# Add ProjectOptions v0.11.2
142+
# Add ProjectOptions v0.11.3
143143
# https://github.com/aminya/ProjectOptions
144144
include(FetchContent)
145-
FetchContent_Declare(projectoptions URL https://github.com/aminya/ProjectOptions/archive/refs/tags/v0.11.2.zip)
145+
FetchContent_Declare(projectoptions URL https://github.com/aminya/ProjectOptions/archive/refs/tags/v0.11.3.zip)
146146
FetchContent_MakeAvailable(projectoptions)
147147
include(${projectoptions_SOURCE_DIR}/Index.cmake)
148148
@@ -153,7 +153,7 @@ include(${projectoptions_SOURCE_DIR}/src/GlobalOptions.cmake)
153153
# # Setup vcpkg - should be called before defining project()
154154
# run_vcpkg()
155155
156-
# Set the project name to your project name, my_project isn't very descriptive
156+
# Set the project name and language
157157
project(myproject LANGUAGES CXX)
158158
159159
# Initialize ProjectOptions

0 commit comments

Comments
 (0)