hedgewars/CMakeLists.txt
changeset 15338 e550096c2322
parent 15337 3e34a014b6e8
child 15339 360c24fe6071
equal deleted inserted replaced
15337:3e34a014b6e8 15338:e550096c2322
    10 include(${CMAKE_MODULE_PATH}/utils.cmake)
    10 include(${CMAKE_MODULE_PATH}/utils.cmake)
    11 
    11 
    12 
    12 
    13 enable_language(Pascal)
    13 enable_language(Pascal)
    14 add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000 -B")
    14 add_flag_append(CMAKE_Pascal_FLAGS "-Cs2000000 -B")
    15 add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv -dDEBUG")
    15 add_flag_append(CMAKE_Pascal_FLAGS_DEBUG "-gv")
    16 add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Xs")
    16 add_flag_append(CMAKE_Pascal_FLAGS_RELEASE "-Xs")
    17 if(UNIX)
    17 if(UNIX)
    18     include(TargetArch)
    18     include(TargetArch)
    19     target_architecture(CMAKE_TARGET_ARCHITECTURES)
    19     target_architecture(CMAKE_TARGET_ARCHITECTURES)
    20     if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_GREATER 2.7 OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386")
    20     if(${CMAKE_Pascal_COMPILER_VERSION} VERSION_GREATER 2.7 OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "x86_64" OR ${CMAKE_TARGET_ARCHITECTURES} MATCHES "i386")