cmake_modules/CheckHaskellModuleExists.cmake
changeset 11333 facac91c7c65
parent 10723 2cfa65083621
child 11860 ad435d95ca4b
equal deleted inserted replaced
10910:df11dea74701 11333:facac91c7c65
     9 # See the License for more information.
     9 # See the License for more information.
    10 #=============================================================================
    10 #=============================================================================
    11 
    11 
    12 macro(CHECK_HASKELL_MODULE_EXISTS MODULE FUNCTION PARAMCOUNT LIBRARY)
    12 macro(CHECK_HASKELL_MODULE_EXISTS MODULE FUNCTION PARAMCOUNT LIBRARY)
    13   set(VARIABLE "HS_MODULE_${LIBRARY}_${FUNCTION}")
    13   set(VARIABLE "HS_MODULE_${LIBRARY}_${FUNCTION}")
    14   if("${VARIABLE}" MATCHES "^${VARIABLE}$")
    14   if(${VARIABLE} MATCHES ^${VARIABLE}$)
    15     message(STATUS "Looking for ${FUNCTION} in ${MODULE}")
    15     message(STATUS "Looking for ${FUNCTION} in ${MODULE}")
    16 
    16 
    17     set(PARAMETERS "")
    17     set(PARAMETERS "")
    18 
    18 
    19     if(PARAMCOUNT GREATER 0)
    19     if(PARAMCOUNT GREATER 0)