diff options
author | Benoit Neil <suky0001@free.fr> | 2009-04-09 21:16:28 +0000 |
---|---|---|
committer | Benoit Neil <suky0001@free.fr> | 2009-04-09 21:16:28 +0000 |
commit | 7e9f7659b3a042098a281d1ffc4ec8f04bc9cfcf (patch) | |
tree | 36d3fb5b80a0f7c1b183da0b83fd6877caf4ca84 /CMakeLists.txt | |
parent | 4d396169c8f8f604e57fecb0b8624d0b424c1ea8 (diff) | |
download | curl-7e9f7659b3a042098a281d1ffc4ec8f04bc9cfcf.tar.gz |
(Minor update) Moved some utilities to a separate file.
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 20 |
1 files changed, 1 insertions, 19 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 936434087..72f2d2f01 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -20,25 +20,7 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.6.2 FATAL_ERROR) SET(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/CMake;${CMAKE_MODULE_PATH}") - -FUNCTION(TO_LIST_SPACES _LIST_NAME OUTPUT_VAR) - SET(NEW_LIST_SPACE) - FOREACH(ITEM ${${_LIST_NAME}}) - SET(NEW_LIST_SPACE "${NEW_LIST_SPACE} ${ITEM}") - ENDFOREACH() - STRING(STRIP ${NEW_LIST_SPACE} NEW_LIST_SPACE) - SET(${OUTPUT_VAR} "${NEW_LIST_SPACE}" PARENT_SCOPE) -ENDFUNCTION() - -# Appends a lis of item to a string which is a space-separated list, if they don't already exist. -FUNCTION(LIST_SPACES_APPEND_ONCE LIST_NAME) - STRING(REPLACE " " ";" _LIST ${${LIST_NAME}}) - LIST(APPEND _LIST ${ARGN}) - LIST(REMOVE_DUPLICATES _LIST) - TO_LIST_SPACES(_LIST NEW_LIST_SPACE) - SET(${LIST_NAME} "${NEW_LIST_SPACE}" PARENT_SCOPE) -ENDFUNCTION() - +INCLUDE(Utilities) project( CURL C ) SET(CURL_MAJOR_VERSION 7) |