Compilation fix on older CMake versions

This commit is contained in:
Bertrand Songis
2016-03-24 21:45:48 +01:00
parent f979fd7289
commit b4bf833667
+3 -1
View File
@@ -11,7 +11,9 @@ message(STATUS "OpenTX ${VERSION}")
cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0020 NEW)
cmake_policy(SET CMP0023 OLD)
cmake_policy(SET CMP0043 NEW)
if(POLICY CMP0043)
cmake_policy(SET CMP0043 NEW)
endif()
set(CMAKE_CXX_STANDARD 11)