Loading src/CMakeLists.txt +6 −1 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ set(ConfigPackageLocation "${CMAKE_INSTALL_LIBDIR}/cmake/libuuidp") install(EXPORT uuidpTargets FILE libuuidpTargets.cmake NAMESPACE uuidp:: # IMPORTANT: Set the desired exported name of the target inside the namespace # This makes the consumer use 'uuidp::uuidp' # TARGET_NAME is the internal target name: uuidp # Renaming the internal target to `uuidp_lib` and exporting it as `uuidp` is another common pattern. # But here, we just rely on the default behavior that makes NAMESPACE::TARGET_NAME DESTINATION "${ConfigPackageLocation}" ) Loading Loading
src/CMakeLists.txt +6 −1 Original line number Diff line number Diff line Loading @@ -63,6 +63,11 @@ set(ConfigPackageLocation "${CMAKE_INSTALL_LIBDIR}/cmake/libuuidp") install(EXPORT uuidpTargets FILE libuuidpTargets.cmake NAMESPACE uuidp:: # IMPORTANT: Set the desired exported name of the target inside the namespace # This makes the consumer use 'uuidp::uuidp' # TARGET_NAME is the internal target name: uuidp # Renaming the internal target to `uuidp_lib` and exporting it as `uuidp` is another common pattern. # But here, we just rely on the default behavior that makes NAMESPACE::TARGET_NAME DESTINATION "${ConfigPackageLocation}" ) Loading