Skip to content
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

Issue with third-party dependencies #40

Open
midhunadarvin opened this issue Apr 23, 2024 · 0 comments
Open

Issue with third-party dependencies #40

midhunadarvin opened this issue Apr 23, 2024 · 0 comments

Comments

@midhunadarvin
Copy link

midhunadarvin commented Apr 23, 2024

I am facing a problem where I am using CPM.make to add third party dependencies to my project and finally I am using packageProject to make it installable. However I am facing this issue where the third party target is not in any export set.

CMake Error: install(EXPORT "asabru_commonsTargets" ...) includes target "asabru_commons" which requires target "nlohmann_json" that is not in any export set.
CMake Error: install(EXPORT "asabru_commonsTargets" ...) includes target "asabru_commons" which requires target "stduuid" that is not in any export set.

This is the packageProject command :

packageProject(
        NAME ${PROJECT_NAME}
        VERSION ${PROJECT_VERSION}
        NAMESPACE ${PROJECT_NAME}
        BINARY_DIR ${PROJECT_BINARY_DIR}
        INCLUDE_DIR ${PROJECT_SOURCE_DIR}/include
        INCLUDE_DESTINATION include/${PROJECT_NAME}-${PROJECT_VERSION}
        VERSION_HEADER "${VERSION_HEADER_LOCATION}"
        COMPATIBILITY SameMajorVersion
        DEPENDENCIES "nlohmann_json 3.11.3"
)

I believe it is because the CMakeLists.txt of the third-party dependencies do not have a install / export command.
Can anyone help with this scenario ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant