You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Anomaly report (something appears to not work correctly)
Enhancement request (describe the enhancement being requested)
Other (please ensure the description clarifies why the issue doesn’t fall into either of the above categories)
Descriptive summary
The CMakeLists.txt file for the streets_service_base project could be modernized and cleaned up some. The following are some areas for improvement based on Craig Scott's Professional CMake book:
more recent CMake version. Ubuntu 20.04 comes pre-installed with version 3.16, which is still several minor versions behind (latest is 3.24). By upgrading versions, we can utilize more modern features.
remove hard coded paths. The installation locations use hard coded paths, which can make customizing the installation location more challenging. Modern CMake recommends using CMAKE_INSTALL_ variables.
add configuration options. Some options, such as spdlog logging levels and whether to build tests, are hard coded. A more flexible approach would be to delegate those decisions to consumers using options.
general readability improvements. The CMakeLists.txt file uses a lot of variables, but they can be excessive for a project of this size. Using more variables also makes the project harder to read/understand, especially for newcomers.
Carma streets version where this issue was discovered
The develop branch
Expected behavior
N/A
Actual behavior
N/A
Steps to reproduce the actual behavior
N/A
Related work
The text was updated successfully, but these errors were encountered:
Types of Issue
Descriptive summary
The
CMakeLists.txt
file for thestreets_service_base
project could be modernized and cleaned up some. The following are some areas for improvement based on Craig Scott's Professional CMake book:CMAKE_INSTALL_
variables.option
s.CMakeLists.txt
file uses a lot of variables, but they can be excessive for a project of this size. Using more variables also makes the project harder to read/understand, especially for newcomers.Carma streets version where this issue was discovered
The
develop
branchExpected behavior
N/A
Actual behavior
N/A
Steps to reproduce the actual behavior
N/A
Related work
The text was updated successfully, but these errors were encountered: