Skip to content

Commit 11fa674

Browse files
authored
Merge pull request #3548 from jsiirola/cmake-3.5-fix
Update ASL CMake builders
2 parents 3c06a2e + 4f5d46b commit 11fa674

File tree

4 files changed

+27
-12
lines changed

4 files changed

+27
-12
lines changed

pyomo/contrib/ampl_function_demo/src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# This software is distributed under the 3-clause BSD License.
1010
# ___________________________________________________________________________
1111

12-
cmake_minimum_required(VERSION 3.0)
13-
# CMake 3.0 needed by AMPL/asl build
12+
cmake_minimum_required(VERSION 3.0...3.31)
13+
# This was developed against CMake 3.0, and appears to comply with 3.5
1414

1515
PROJECT( ampl_function_demo )
1616

pyomo/contrib/ampl_function_demo/src/FindASL.cmake

+10-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,21 @@
99
# This software is distributed under the 3-clause BSD License.
1010
# ___________________________________________________________________________
1111

12-
cmake_minimum_required(VERSION 3.0)
13-
# Minimum version inherited from AMPL/asl
12+
cmake_minimum_required(VERSION 3.0...3.31)
13+
# CMake 3.0 added GIT_SUBMODULES to ExternalProject_ADD, and without it
14+
# the Ampl/MP checkout fails because one of the submodules (gecode) is a
15+
# private repository.
16+
#
17+
# CMake will complain/fail if we don't explicitly acknowledge 3.5
18+
# compatibility. AMPL/asl has moved their min version to 3.5.
1419

1520
include(ExternalProject)
1621

1722
# Dependencies that we manage / can install
18-
SET(AMPLASL_TAG "9fb7cb8e4f68ed1c3bc066d191e63698b7d7d1d2" CACHE STRING
23+
SET(AMPLASL_TAG "ae937db9bd1169ec2c4cb8d75196f67cdcb8041b" CACHE STRING
1924
"AMPL/asl git tag/branch to checkout and build")
20-
# 9fb7cb8e4f68ed1c3bc066d191e63698b7d7d1d2 corresponds to ASLdate = 20211109
25+
# 9fb7cb8e4f68ed1c3bc066d191e63698b7d7d1d2: ASLdate=20211109
26+
# ae937db9bd1169ec2c4cb8d75196f67cdcb8041b: v1.0.1 ASLdate = 20241202/20241122
2127
OPTION(BUILD_AMPLASL
2228
"Download and build AMPL/asl ${AMPLASL_TAG} from GitHub" OFF)
2329

pyomo/contrib/cspline_external/src/CMakeLists.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
# This software is distributed under the 3-clause BSD License.
1010
# ___________________________________________________________________________
1111

12-
cmake_minimum_required(VERSION 3.0)
13-
# CMake 3.0 needed by AMPL/asl build
12+
cmake_minimum_required(VERSION 3.0...3.31)
13+
# This was developed against CMake 3.0, and appears to comply with 3.5
1414

1515
PROJECT( cspline_external )
1616

pyomo/contrib/pynumero/src/CMakeLists.txt

+13-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,16 @@
1-
cmake_minimum_required(VERSION 3.0)
2-
# CMake 3.0 added GIT_SUBMODULES to ExternalProject_ADD, and without it
3-
# the Ampl/MP checkout fails because one of the submodules (gecode) is a
4-
# private repository.
1+
# ___________________________________________________________________________
2+
#
3+
# Pyomo: Python Optimization Modeling Objects
4+
# Copyright (c) 2008-2025
5+
# National Technology and Engineering Solutions of Sandia, LLC
6+
# Under the terms of Contract DE-NA0003525 with National Technology and
7+
# Engineering Solutions of Sandia, LLC, the U.S. Government retains certain
8+
# rights in this software.
9+
# This software is distributed under the 3-clause BSD License.
10+
# ___________________________________________________________________________
11+
12+
cmake_minimum_required(VERSION 3.0...3.31)
13+
# This was developed against CMake 3.0, and appears to comply with 3.5
514

615
PROJECT( pynumero )
716

0 commit comments

Comments
 (0)