diff --git a/cpp-netlib/CMakeLists.txt b/cpp-netlib/CMakeLists.txt index aa0792d41c..a6ecf8ed76 100644 --- a/cpp-netlib/CMakeLists.txt +++ b/cpp-netlib/CMakeLists.txt @@ -110,8 +110,6 @@ endif() enable_testing() -install(DIRECTORY boost DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) - ### ## Export Targets # (so cpp-netlib can be easily used by other CMake projects) @@ -138,13 +136,3 @@ configure_file(cppnetlibConfig.cmake.in # ... for both configure_file(cppnetlibConfigVersion.cmake.in "${PROJECT_BINARY_DIR}/cppnetlibConfigVersion.cmake" @ONLY) -# Install the cppnetlibConfig.cmake and cppnetlibConfigVersion.cmake -install(FILES - "${PROJECT_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/cppnetlibConfig.cmake" - "${PROJECT_BINARY_DIR}/cppnetlibConfigVersion.cmake" - DESTINATION "${INSTALL_CMAKE_DIR}" - COMPONENT dev) -# Install the export set for use with the install-tree -install(EXPORT cppnetlibTargets - DESTINATION "${INSTALL_CMAKE_DIR}" - COMPONENT dev) diff --git a/cpp-netlib/libs/network/src/CMakeLists.txt b/cpp-netlib/libs/network/src/CMakeLists.txt index 3f22165df0..8bafc46718 100644 --- a/cpp-netlib/libs/network/src/CMakeLists.txt +++ b/cpp-netlib/libs/network/src/CMakeLists.txt @@ -17,11 +17,6 @@ set_target_properties(cppnetlib-uri PROPERTIES VERSION ${CPPNETLIB_VERSION_STRING} SOVERSION ${CPPNETLIB_VERSION_MAJOR} PUBLIC_HEADER "${CPP-NETLIB_HEADERS}") -install(TARGETS cppnetlib-uri - EXPORT cppnetlibTargets - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) set(CPP-NETLIB_HTTP_SERVER_SRCS server_request_parsers_impl.cpp) add_library(cppnetlib-server-parsers ${CPP-NETLIB_HTTP_SERVER_SRCS}) @@ -29,11 +24,6 @@ set_target_properties(cppnetlib-server-parsers PROPERTIES VERSION ${CPPNETLIB_VERSION_STRING} SOVERSION ${CPPNETLIB_VERSION_MAJOR} PUBLIC_HEADER "${CPP-NETLIB_HEADERS}") -install(TARGETS cppnetlib-server-parsers - EXPORT cppnetlibTargets - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR}) set(CPP-NETLIB_HTTP_CLIENT_SRCS client.cpp) add_library(cppnetlib-client-connections ${CPP-NETLIB_HTTP_CLIENT_SRCS}) @@ -47,8 +37,3 @@ endif () if (Boost_FOUND) target_link_libraries(cppnetlib-client-connections ${Boost_LIBRARIES}) endif () -install(TARGETS cppnetlib-client-connections - EXPORT cppnetlibTargets - PUBLIC_HEADER DESTINATION ${CMAKE_INSTALL_FULL_INCLUDEDIR} - LIBRARY DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR} - ARCHIVE DESTINATION ${CMAKE_INSTALL_FULL_LIBDIR})