summaryrefslogtreecommitdiffstats
path: root/Modules/FindIce.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2015-01-04 13:06:14 (GMT)
committerBrad King <brad.king@kitware.com>2015-01-08 19:13:48 (GMT)
commitcbaf0802a5646dd1fdf9fabc0f0c274621349619 (patch)
tree35618bb1bd3bb42ac3603298684633e15beb960d /Modules/FindIce.cmake
parentc118816d44e178e4364a0c32aaece81a14511237 (diff)
downloadCMake-cbaf0802a5646dd1fdf9fabc0f0c274621349619.zip
CMake-cbaf0802a5646dd1fdf9fabc0f0c274621349619.tar.gz
CMake-cbaf0802a5646dd1fdf9fabc0f0c274621349619.tar.bz2
FindIce: Port to work with CMP0054 NEW behavior
Do not quote if() arguments meant to test variable definitions.
Diffstat (limited to 'Modules/FindIce.cmake')
-rw-r--r--Modules/FindIce.cmake10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modules/FindIce.cmake b/Modules/FindIce.cmake
index 76cecc1..8493d80 100644
--- a/Modules/FindIce.cmake
+++ b/Modules/FindIce.cmake
@@ -282,21 +282,21 @@ function(_Ice_FIND)
PATH_SUFFIXES ${ice_library_suffixes}
DOC "Ice ${component} library")
mark_as_advanced("${component_cache}")
- if("${component_cache}")
+ if(${component_cache})
set("${component_found}" ON)
list(APPEND Ice_LIBRARY "${${component_cache}}")
endif()
mark_as_advanced("${component_found}")
set("${component_cache}" "${${component_cache}}" PARENT_SCOPE)
set("${component_found}" "${${component_found}}" PARENT_SCOPE)
- if("${component_found}")
- if ("Ice_FIND_REQUIRED_${component}")
+ if(${component_found})
+ if (Ice_FIND_REQUIRED_${component})
list(APPEND Ice_LIBS_FOUND "${component} (required)")
else()
list(APPEND Ice_LIBS_FOUND "${component} (optional)")
endif()
else()
- if ("Ice_FIND_REQUIRED_${component}")
+ if (Ice_FIND_REQUIRED_${component})
set(Ice_REQUIRED_LIBS_FOUND OFF)
list(APPEND Ice_LIBS_NOTFOUND "${component} (required)")
else()
@@ -356,7 +356,7 @@ if(Ice_FOUND)
set(_Ice_component_cache "Ice_${_Ice_component_upcase}_LIBRARY")
set(_Ice_component_lib "Ice_${_Ice_component_upcase}_LIBRARIES")
set(_Ice_component_found "${_Ice_component_upcase}_FOUND")
- if("${_Ice_component_found}")
+ if(${_Ice_component_found})
set("${_Ice_component_lib}" "${${_Ice_component_cache}}")
endif()
unset(_Ice_component_upcase)