diff options
author | Even Rouault <even.rouault@spatialys.com> | 2022-07-08 13:25:14 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2022-07-12 17:17:07 +0200 |
commit | 7ac3607584063f897a38bccba3a65125d6ca78de (patch) | |
tree | b35a92f401933a8187306ee42db7e0758b5b5350 /src/CMakeLists.txt | |
parent | e9a2eced69effdc77326a58625fcfce04c9301c5 (diff) | |
download | curl-7ac3607584063f897a38bccba3a65125d6ca78de.tar.gz |
CMake: remove APPEND in export(TARGETS)
When running cmake several times, new content was appended to already
existing generated files, which is not appropriate
Reviewed-by: Jakub Zakrzewski
Closes #9124
Diffstat (limited to 'src/CMakeLists.txt')
-rw-r--r-- | src/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 56d5d530d..dd9640c9c 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -111,6 +111,6 @@ 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 + FILE ${PROJECT_BINARY_DIR}/curl-target.cmake NAMESPACE ${PROJECT_NAME}:: ) |