summaryrefslogtreecommitdiffstats
path: root/Modules/FindCURL.cmake
diff options
context:
space:
mode:
authorHiroshi Miura <miurahr@linux.com>2018-06-27 17:02:54 (GMT)
committerBrad King <brad.king@kitware.com>2018-07-03 17:31:48 (GMT)
commit6a9fe250a7a56f98d6af081ca172cfc28d127206 (patch)
treed2a3bffc8ed0d9851fda2b99af52f3327299eed9 /Modules/FindCURL.cmake
parent21a2ace381f0b8245bcdbcb4a61fed9b77f79415 (diff)
downloadCMake-6a9fe250a7a56f98d6af081ca172cfc28d127206.zip
CMake-6a9fe250a7a56f98d6af081ca172cfc28d127206.tar.gz
CMake-6a9fe250a7a56f98d6af081ca172cfc28d127206.tar.bz2
FindCURL: Improve CURL::libcurl property code layout
Diffstat (limited to 'Modules/FindCURL.cmake')
-rw-r--r--Modules/FindCURL.cmake6
1 files changed, 4 insertions, 2 deletions
diff --git a/Modules/FindCURL.cmake b/Modules/FindCURL.cmake
index a549765..0bd47f7 100644
--- a/Modules/FindCURL.cmake
+++ b/Modules/FindCURL.cmake
@@ -69,7 +69,9 @@ if(CURL_FOUND)
if(NOT TARGET CURL::libcurl)
add_library(CURL::libcurl UNKNOWN IMPORTED)
- set_target_properties(CURL::libcurl PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIRS}")
- set_property(TARGET CURL::libcurl APPEND PROPERTY IMPORTED_LOCATION "${CURL_LIBRARY}")
+ set_target_properties(CURL::libcurl PROPERTIES
+ INTERFACE_INCLUDE_DIRECTORIES "${CURL_INCLUDE_DIRS}")
+ set_property(TARGET CURL::libcurl PROPERTY
+ IMPORTED_LOCATION "${CURL_LIBRARY}")
endif()
endif()