Skip to content

Commit

Permalink
Use namespace for exported target
Browse files Browse the repository at this point in the history
  • Loading branch information
rickertm committed Sep 14, 2016
1 parent ff3e18a commit e05b266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Expand Up @@ -109,4 +109,4 @@ configure_package_config_file(
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/solid3-config.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/solid3)
write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/solid3-config-version.cmake VERSION ${VERSION} COMPATIBILITY ExactVersion)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/solid3-config-version.cmake DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/solid3)
install(EXPORT solid3 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/solid3 FILE solid3-export.cmake)
install(EXPORT solid3 DESTINATION ${CMAKE_INSTALL_LIBDIR}/cmake/solid3 NAMESPACE solid3:: FILE solid3-export.cmake)
2 changes: 1 addition & 1 deletion solid3-config.cmake.in
Expand Up @@ -10,4 +10,4 @@ include("${CMAKE_CURRENT_LIST_DIR}/solid3-export.cmake")
set(SOLID3_DEFINITIONS "")
set(SOLID3_INCLUDE_DIRS "${PACKAGE_PREFIX_DIR}/include")
set(SOLID3_LIBRARY_DIRS "${PACKAGE_PREFIX_DIR}/lib")
set(SOLID3_LIBRARIES "solid3")
set(SOLID3_LIBRARIES "solid3::solid3")

0 comments on commit e05b266

Please sign in to comment.