From 260398239b49f4e5d5971138db17661995dece56 Mon Sep 17 00:00:00 2001 From: Robin Andersson Date: Thu, 31 Oct 2024 14:31:54 -0400 Subject: [PATCH] Added fix --- CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 93c8c21f..63275b5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2012 Modelon AB +# Copyright (C) 2012-2024 Modelon AB # # This program is free software: you can redistribute it and/or modify # it under the terms of the BSD style license. @@ -24,7 +24,9 @@ endif() project(FMILibrary) # Only check this when developing. (Project minimum required is less.) -if(${CMAKE_VERSION} VERSION_GREATER_EQUAL "3.3") +# Also use "version > 3.3 or version == 3.3", instead of VERSION_GREATER_EQUAL +# since that requires CMake 3.7 or newer. +if(${CMAKE_VERSION} VERSION_GREATER "3.3" OR ${CMAKE_VERSION} VERSION_EQUAL "3.3") # Require that we specify when using "byproducts" (i.e. files in the build tree without any explicit target) # to prevent problems with Ninja. cmake_policy(SET CMP0058 NEW)