CMakeLists.txt
changeset 8087 ccc99eebdac2
parent 8082 675372256a01
child 8088 55f99b65e795
equal deleted inserted replaced
8086:576ca9b3c7d8 8087:ccc99eebdac2
     1 project(hedgewars)
     1 project(hedgewars)
     2 
       
     3 
     2 
     4 #initialise cmake environment
     3 #initialise cmake environment
     5 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
     4 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
     6 FOREACH(policy CMP0003 CMP0012)
     5 cmake_policy(VERSION 2.6)
     7     IF(POLICY ${policy})
     6 FOREACH(hwpolicy CMP0003 CMP0012 CMP0017)
     8         CMAKE_POLICY(SET ${policy} NEW)
     7     CMAKE_POLICY(SET ${hwpolicy} NEW)
     9     ENDIF()
       
    10 ENDFOREACH()
     8 ENDFOREACH()
    11 set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules)
     9 #use available modules, fallback to ours if not present (CMP0017 helps)
       
    10 set(CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules" "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
    12 
    11 
    13 
    12 
    14 #detect Mercurial revision (if present)
    13 #detect Mercurial revision (if present)
    15 set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME
    14 set(version_suffix "-dev") #UNSET THIS VARIABLE AT RELEASE TIME
    16 set(HGCHANGED "")
    15 set(HGCHANGED "")