Some cleanup of cmake module build.

This commit is contained in:
James Goppert
2015-09-12 00:49:10 -04:00
parent 0d28cdeb88
commit 68a78b0580
2 changed files with 18 additions and 6 deletions

View File

@@ -142,6 +142,7 @@ project(px4 CXX C ASM)
if (NOT ${CMAKE_VERSION} VERSION_LESS 3.0.0)
cmake_policy(SET CMP0045 NEW) # error on non-existent target in get prop
cmake_policy(SET CMP0046 NEW) # no non-existent targets as dependencies
cmake_policy(SET CMP0054 NEW) # don't dereference quoted variables
endif()
set(version_major 1)