Remove quotes when checking Haskell Modules to adopt new CMake
authorMilo Mordaunt <milomord@gmail.com>
Sun, 26 Apr 2015 13:02:38 +0100
changeset 11338 facac91c7c65
parent 10910 df11dea74701
child 11339 8ce376b16132
Remove quotes when checking Haskell Modules to adopt new CMake behaviour (CMP0054)
cmake_modules/CheckHaskellModuleExists.cmake
--- a/cmake_modules/CheckHaskellModuleExists.cmake	Sat Apr 11 17:37:43 2015 +0300
+++ b/cmake_modules/CheckHaskellModuleExists.cmake	Sun Apr 26 13:02:38 2015 +0100
@@ -11,7 +11,7 @@
 
 macro(CHECK_HASKELL_MODULE_EXISTS MODULE FUNCTION PARAMCOUNT LIBRARY)
   set(VARIABLE "HS_MODULE_${LIBRARY}_${FUNCTION}")
-  if("${VARIABLE}" MATCHES "^${VARIABLE}$")
+  if(${VARIABLE} MATCHES ^${VARIABLE}$)
     message(STATUS "Looking for ${FUNCTION} in ${MODULE}")
 
     set(PARAMETERS "")