I am using cmake's PackageConfigHelpers'
configure_package_config_file(
Config.cmake.in"
"${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}Config.cmake"
INSTALL_DESTINATION
....
PATH_VARS
my_paths
)
If my_path
were to consist of multiple paths, such as:
set(my_paths path1 path2)
the config file will end up prefixing only path1 and I will end up with:
${PACKAGE_PREFIX_DIR}path1;path2.
which results into path2 not being locatable. Is there any way of fixing this while still using the function provided by PackageConfigHelpers
?