CMakeLists.txt
branchcmake_pascal
changeset 8796 8ab4ef8b70f6
parent 8787 f9dc079f2aa6
child 8798 03d113d51062
equal deleted inserted replaced
8794:9f47c1f8056d 8796:8ab4ef8b70f6
   234     endif()
   234     endif()
   235 endif()
   235 endif()
   236 unset(CMAKE_REQUIRED_FLAGS)
   236 unset(CMAKE_REQUIRED_FLAGS)
   237 
   237 
   238 #parse additional parameters
   238 #parse additional parameters
   239 if(FPFLAGS OR GHFLAGS)
   239 if(FPFLAGS)
       
   240     add_flag_prepend(CMAKE_Pascal_FLAGS ${FPFLAGS})
       
   241 endif()
       
   242 if(GHFLAGS)
   240     if(${allow_parse_args})
   243     if(${allow_parse_args})
       
   244         separate_arguments(ghflags_parsed UNIX_COMMAND ${GHFLAGS})
       
   245     else()
   241         message(${WARNING} "FPFLAGS and GHFLAGS are available only when using CMake >= 2.8")
   246         message(${WARNING} "FPFLAGS and GHFLAGS are available only when using CMake >= 2.8")
   242     else()
       
   243         separate_arguments(fpflags_parsed UNIX_COMMAND ${FPFLAGS})
       
   244         separate_arguments(ghflags_parsed UNIX_COMMAND ${GHFLAGS})
       
   245     endif()
   247     endif()
   246 endif()
   248 endif()
   247 
   249 
   248 
   250 
   249 list(APPEND haskell_flags ${ghflags_parsed} # user flags
   251 list(APPEND haskell_flags ${ghflags_parsed} # user flags