commit c7d54fd990c23f861624295c115724a2619d694a parent ca92e946a64999ac9fef2d3f2dea6df98e49ab15 Author: Vincent Forest <vincent.forest@meso-star.com> Date: Wed, 13 Mar 2019 14:27:59 +0100 Fix the CMakeLists.txt for CMake version < 3.1 Diffstat:
| M | cmake/CMakeLists.txt | | | 4 | +++- |
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt @@ -16,7 +16,9 @@ cmake_minimum_required(VERSION 3.0) project(stardis C) enable_testing() -cmake_policy(SET CMP0054 OLD) # Disable OpenMP CMake warning +if(POLICY CMP0054) + cmake_policy(SET CMP0054 OLD) # Disable OpenMP CMake warning +endif() include(CMakeDependentOption)