diff --git a/CMakeLists.txt b/CMakeLists.txt index 33a7d9b4..4705ead6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -25,6 +25,13 @@ if(POLICY CMP0042) cmake_policy(SET CMP0042 NEW) endif(POLICY CMP0042) +#Setting this policy was required when building with the SCM. Without it, the +# STATIC cmake variable was getting cleared, making this CMakeLists.txt +# assume a dynamic build. +if(POLICY CMP0077) + cmake_policy(SET CMP0077 NEW) +endif(POLICY CMP0077) + #------------------------------------------------------------------------------ # Enable Fortran enable_language(Fortran)