[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnurl] 179/264: cmake: add aliases so exported target names are availab
From: |
gnunet |
Subject: |
[gnurl] 179/264: cmake: add aliases so exported target names are available in tree |
Date: |
Thu, 30 Apr 2020 16:08:02 +0200 |
This is an automated email from the git hooks/post-receive script.
nikita pushed a commit to branch master
in repository gnurl.
commit 7fa1578471697eac9726261c3dcd06ded994aa21
Author: Nathaniel R. Lewis <address@hidden>
AuthorDate: Thu Apr 9 13:42:22 2020 -0700
cmake: add aliases so exported target names are available in tree
Reviewed-by: Brad King
Closes #5206
---
lib/CMakeLists.txt | 7 ++++++-
src/CMakeLists.txt | 7 ++++++-
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
index a10403ace..1d71e1490 100644
--- a/lib/CMakeLists.txt
+++ b/lib/CMakeLists.txt
@@ -92,6 +92,11 @@ add_library(
${HHEADERS} ${CSOURCES}
)
+add_library(
+ ${PROJECT_NAME}::${LIB_NAME}
+ ALIAS ${LIB_NAME}
+ )
+
if(MSVC AND NOT BUILD_SHARED_LIBS)
set_target_properties(${LIB_NAME} PROPERTIES STATIC_LIBRARY_FLAGS
${CMAKE_EXE_LINKER_FLAGS})
endif()
@@ -143,5 +148,5 @@ install(TARGETS ${LIB_NAME}
export(TARGETS ${LIB_NAME}
APPEND FILE ${PROJECT_BINARY_DIR}/libcurl-target.cmake
- NAMESPACE CURL::
+ NAMESPACE ${PROJECT_NAME}::
)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index dbd348ade..26e3cfe1e 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -67,6 +67,11 @@ add_executable(
${CURL_FILES}
)
+add_executable(
+ ${PROJECT_NAME}::${EXE_NAME}
+ ALIAS ${EXE_NAME}
+ )
+
if(CURL_HAS_LTO)
set_target_properties(${EXE_NAME} PROPERTIES
INTERPROCEDURAL_OPTIMIZATION_RELEASE TRUE
@@ -99,5 +104,5 @@ target_link_libraries(${EXE_NAME} libcurl ${CURL_LIBS})
install(TARGETS ${EXE_NAME} EXPORT ${TARGETS_EXPORT_NAME} DESTINATION
${CMAKE_INSTALL_BINDIR})
export(TARGETS ${EXE_NAME}
APPEND FILE ${PROJECT_BINARY_DIR}/curl-target.cmake
- NAMESPACE CURL::
+ NAMESPACE ${PROJECT_NAME}::
)
--
To stop receiving notification emails like this one, please contact
address@hidden.
- [gnurl] 133/264: scripts/release-notes.pl: add helper script for RELEASE-NOTES maintenance, (continued)
- [gnurl] 133/264: scripts/release-notes.pl: add helper script for RELEASE-NOTES maintenance, gnunet, 2020/04/30
- [gnurl] 132/264: configure: don't check for Security.framework when cross-compiling, gnunet, 2020/04/30
- [gnurl] 74/264: copyright: fix out-of-date copyright ranges and missing headers, gnunet, 2020/04/30
- [gnurl] 39/264: windows: suppress UI in all CryptAcquireContext() calls, gnunet, 2020/04/30
- [gnurl] 53/264: mbedtls: remove the BACKEND define kludge, gnunet, 2020/04/30
- [gnurl] 61/264: curl_setup: define _WIN32_WINNT_[OS] symbols, gnunet, 2020/04/30
- [gnurl] 55/264: test970: fix static ip:port instead of dynamic values being used, gnunet, 2020/04/30
- [gnurl] 84/264: SSLCERTS.md: Fix example code for setting CA cert file, gnunet, 2020/04/30
- [gnurl] 88/264: writeout_json: Fix data type issues, gnunet, 2020/04/30
- [gnurl] 93/264: KNOWN_BUGS: DoH doesn't inherit all transfer options, gnunet, 2020/04/30
- [gnurl] 179/264: cmake: add aliases so exported target names are available in tree,
gnunet <=
- [gnurl] 46/264: writeout_json: use curl_off_t printf() option for the time output, gnunet, 2020/04/30
- [gnurl] 58/264: tests: add test 430, 431 and 432 to verify the --config fix, gnunet, 2020/04/30
- [gnurl] 60/264: curl-functions.m4: remove inappropriate AC_REQUIRE, gnunet, 2020/04/30
- [gnurl] 119/264: KNOWN_BUGS: Store TLS context per transfer instead of per connection, gnunet, 2020/04/30
- [gnurl] 92/264: KNOWN_BUGS: DoH leaks memory after followlocation, gnunet, 2020/04/30
- [gnurl] 98/264: SECURITY.md: minor rephrase, gnunet, 2020/04/30
- [gnurl] 125/264: appveyor: turn disabled tests into ignored result tests, gnunet, 2020/04/30
- [gnurl] 130/264: lib: never define CURL_CA_BUNDLE with a getenv, gnunet, 2020/04/30
- [gnurl] 127/264: appveyor: sort builds by type and add two new variants, gnunet, 2020/04/30
- [gnurl] 134/264: RELEASE-NOTES: synced, gnunet, 2020/04/30