CMakeLists.txt
changeset 8089 56bf04303311
parent 8088 55f99b65e795
child 8090 38d9cc60b14c
equal deleted inserted replaced
8088:55f99b65e795 8089:56bf04303311
     2 
     2 
     3 #initialise cmake environment
     3 #initialise cmake environment
     4 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
     4 cmake_minimum_required(VERSION 2.6.0 FATAL_ERROR)
     5 cmake_policy(VERSION 2.6)
     5 cmake_policy(VERSION 2.6)
     6 FOREACH(hwpolicy CMP0003 CMP0012 CMP0017)
     6 FOREACH(hwpolicy CMP0003 CMP0012 CMP0017)
     7     IF(POLICY ${policy})
     7     IF(POLICY ${hwpolicy})
     8         CMAKE_POLICY(SET ${hwpolicy} NEW)
     8         CMAKE_POLICY(SET ${hwpolicy} NEW)
     9     ENDIF()
     9     ENDIF()
    10 ENDFOREACH()
    10 ENDFOREACH()
    11 #use available modules, fallback to ours if not present (CMP0017 helps)
    11 #use available modules, fallback to ours if not present (CMP0017 helps)
    12 set(CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules" "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
    12 set(CMAKE_MODULE_PATH "${CMAKE_ROOT}/Modules" "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")