-
-
Notifications
You must be signed in to change notification settings - Fork 53
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
package_project() does not normalize the install paths before printing #117
Comments
Where is the strange part? |
And this info in not right: cat: /Users/clausklein/Workspace/cpp/stage/usr/share/greeter/usage
find_package(greeter CONFIG REQUIRED)
target_link_libraries(main PRIVATE greeter::greeter greeter::project_options greeter::project_warnings) see set_target_properties(greeter::greeter PROPERTIES
INTERFACE_COMPILE_FEATURES "cxx_std_20"
INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include"
INTERFACE_LINK_LIBRARIES "fmt::fmt;greeter::project_warnings;greeter::project_options"
INTERFACE_SYSTEM_INCLUDE_DIRECTORIES "include"
) |
It seems correct to me. I don't see any issue here. |
Yes, "seems" it is correct, but may be prevented to be clear. |
The correct usage message should: find_package(greeter CONFIG REQUIRED)
target_link_libraries(main PRIVATE greeter::greeter) |
The reporting is just for information and debugging purposes. CMake itself should normalize the paths before installation if that is important for you. |
That is subjective. When you export However, it might be useful to add an option to hide this from the usage file. |
This links |
my
CMakeLists.txt
contains this:This installed CMake config packages contains:
The text was updated successfully, but these errors were encountered: