Merge pull request #33 from bananaoomarang/cmakeWarnings
authorVittorio Giovara <vittorio.giovara@gmail.com>
Mon, 09 Nov 2015 18:37:57 +0100
changeset 11334 8ce376b16132
parent 11331 14de659a4b79 (current diff)
parent 11333 facac91c7c65 (diff)
child 11335 dfcbc2639ade
Merge pull request #33 from bananaoomarang/cmakeWarnings Remove quotes when checking Haskell Modules to adopt CMP0054
--- a/cmake_modules/CheckHaskellModuleExists.cmake	Mon Nov 09 16:34:32 2015 +0000
+++ b/cmake_modules/CheckHaskellModuleExists.cmake	Mon Nov 09 18:37:57 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 "")