-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove inconsistencies in CMake naming #15
Labels
user story
User story
Comments
10 tasks
doodspav
added
user story
User story
and removed
task
Small standalone task that doesn't need a parent
labels
Mar 25, 2023
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
Options / public cache variables changed: - `patomic_INSTALL_CMAKEDIR` -> `PATOMIC_INSTALL_CMAKEDIR` - `patomic_BUILD_SHARED` -> `PATOMIC_BUILD_SHARED` - `patomic_INCLUDES_WITH_SYSTEM` -> `PATOMIC_INCLUDES_WITH_SYSTEM` - `patomic_BUILD_TESTING` -> `PATOMIC_BUILD_TESTING` Signed-off-by: doodspav <[email protected]>
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
- `patomic_WARNING_GUARD` -> `warning_guard` - `patomic_BUILD_TYPE` -> `build_type` Removed the `patomic_` prefix since they're already scoped by the directory (and project), and don't want them to be confused for an option that we forgot to make all caps. Signed-off-by: doodspav <[email protected]>
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
- `patomic_test_CREATE_TEST_TARGETS_MATCHING` -> `PATOMIC_CREATE_TEST_TARGETS_MATCHING` - `patomic_test_SET_CTEST_PATH_ENV_WINDOWS` -> `PATOMIC_WINDOWS_SET_CTEST_PATH_ENV` - `patomic_test_CREATE_WINDOWS_PATH_FILE` -> `PATOMIC_WINDOWS_CREATE_PATH_ENV_FILE` Change the `patomic_test` prefix to just `PATOMIC` since they're all really options to do with `patomic`, and the `test` part is obvious from the remaining option name. Signed-off-by: doodspav <[email protected]>
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
- `windows_deps_path`: `VAR` -> `ARG_VAR` Signed-off-by: doodspav <[email protected]>
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
- `CMAKE_INSTALL_INCLUDEDIR` override - `PATOMIC_INSTALL_CMAKEDIR` Signed-off-by: doodspav <[email protected]>
doodspav
added a commit
that referenced
this issue
Mar 25, 2023
## Scope - make `patomic_` options all-caps - make `patomic_test_` options all-caps, rename slightly, and remove `test` from prefix - make project scope variables snake-case and remove `patomic_` prefix - prefix argument names with `ARG_` - move all options to the relevant `OptionVariables.cmake` --------- Signed-off-by: doodspav <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Acceptance Criteria
snake_case
ALL_CAPS
and prefixed withARG_
cmake_parse_arguments
is used, the prefix should beARG
ALL_CAPS
PATOMIC_
, regardless of if they're inpatomic
orpatomic_test
project.cmake
filesnake_case
.cmake
file names for files required to build the project (i.e. not installed version/config files) should bePascalCase
.cmake
files generated for installation should be<project>PascalCase.cmake
(which will end up beingcamelCase
)snake_case
snake_case
prefixed withpatomic_
project_Component
(e.g.patomic_Runtime
)snake_cast
Note: These rules are guidelines, and can be ignored in special cases if it makes sense to do so, and would be understandable to another reader.
The text was updated successfully, but these errors were encountered: