diff --git a/CMakeLists.txt b/CMakeLists.txt index 66b1804af..94bbe5c6c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,11 @@ cmake_minimum_required(VERSION 3.0) +# allow parent project to override options +if (POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif(POLICY CMP0077) + + # Set the version number for the library set (GTSAM_VERSION_MAJOR 4) set (GTSAM_VERSION_MINOR 3)