cmake_modules/CheckHaskellModuleExists.cmake
changeset 11338 facac91c7c65
parent 10723 2cfa65083621
child 11855 ad435d95ca4b
--- 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 "")