softwarecontainer icon indicating copy to clipboard operation
softwarecontainer copied to clipboard

CMake Bug in CMakeLists.txt

Open x12301450 opened this issue 4 months ago • 0 comments

In CMakeLists.txt, there are three calls of add_string_config, for example:

add_string_config(${SC_CONFIG_GROUP}
                  DEFAULT_SERVICE_MANIFEST_DIR
                  "${SYS_CONFIG_DIR}/service-manifest.default.d/"
                  "${SYS_CONFIG_DIR}/service-manifest.default.d/")

However, variable SYS_CONFIG_DIR is defined with a trailing slash, leading to double slash issue in add_string_config:

SET(SYS_CONFIG_DIR ${CMAKE_INSTALL_FULL_SYSCONFDIR}/softwarecontainer/)

I think this issue will help improve your project!

x12301450 avatar Oct 06 '25 13:10 x12301450