Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added fix for improved CMake version compliance #152

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -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.
Expand All @@ -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)
Expand Down