Allow parent project to override options

Signed-off-by: Jade Turner <spacey-sooty@proton.me>
release/4.3a0
Jade Turner 2024-10-22 12:38:31 +08:00
parent 4abef9248e
commit 91d1dd3a9c
No known key found for this signature in database
GPG Key ID: 6A339C474B1ED4BD
1 changed files with 6 additions and 0 deletions

View File

@ -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)