CMakeLists.txt
changeset 9262 b5a36423bd7e
parent 9233 a6ae0286787c
child 9265 a0e7e7a1c3f8
equal deleted inserted replaced
9257:e89e1ab7f62b 9262:b5a36423bd7e
    28 endif()
    28 endif()
    29 
    29 
    30 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF)
    30 option(BUILD_ENGINE_LIBRARY "Enable hwengine library (off)" OFF)
    31 option(ANDROID "Enable Android build (off)" OFF)
    31 option(ANDROID "Enable Android build (off)" OFF)
    32 
    32 
    33 if(UNIX AND NOT APPLE)
    33 option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF)
    34     option(MINIMAL_FLAGS "Respect system flags as much as possible (off)" OFF)
    34 option(NOAUTOUPDATE "Disable OS X Sparkle update checking (off)" OFF)
    35 else()
       
    36     option(NOAUTOUPDATE "Disable OS X Sparkle update checking" OFF)
       
    37 endif()
       
    38 
    35 
    39 set(FPFLAGS "" CACHE STRING "Additional Freepascal flags")
    36 set(FPFLAGS "" CACHE STRING "Additional Freepascal flags")
    40 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    37 set(GHFLAGS "" CACHE STRING "Additional Haskell flags")
    41 if(UNIX AND NOT APPLE)
    38 if(UNIX AND NOT APPLE)
    42     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    39     set(DATA_INSTALL_DIR "share/hedgewars" CACHE STRING "Resource folder path")
    89     set(CMAKE_C_FLAGS_DEBUG "-Wall")
    86     set(CMAKE_C_FLAGS_DEBUG "-Wall")
    90     set(CMAKE_CXX_FLAGS_RELEASE "")
    87     set(CMAKE_CXX_FLAGS_RELEASE "")
    91     set(CMAKE_CXX_FLAGS_DEBUG "-Wall")
    88     set(CMAKE_CXX_FLAGS_DEBUG "-Wall")
    92 endif()
    89 endif()
    93 
    90 
       
    91 
    94 #parse additional parameters
    92 #parse additional parameters
    95 if(FPFLAGS)
    93 if(FPFLAGS)
    96     add_flag_prepend(CMAKE_Pascal_FLAGS ${FPFLAGS})
    94     add_flag_prepend(CMAKE_Pascal_FLAGS ${FPFLAGS})
    97 endif()
    95 endif()
    98 if(GHFLAGS)
    96 if(GHFLAGS)