diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/casadi/disable_fortran.patch | |
Diffstat (limited to 'vcpkg/ports/casadi/disable_fortran.patch')
| -rw-r--r-- | vcpkg/ports/casadi/disable_fortran.patch | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/vcpkg/ports/casadi/disable_fortran.patch b/vcpkg/ports/casadi/disable_fortran.patch new file mode 100644 index 0000000..35cd047 --- /dev/null +++ b/vcpkg/ports/casadi/disable_fortran.patch @@ -0,0 +1,28 @@ +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 0200a56df..69b699626 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -84,23 +84,7 @@ if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES) + set(CMAKE_BUILD_TYPE "Release" CACHE STRING "Build type (default Release)" FORCE) + endif() + +-######################################################################## +-############################# Fortran ################################## +-######################################################################## +-option(FORTRAN_REQUIRED "Make fortran a required dependency" OFF) +- +-# http://public.kitware.com/Bug/print_bug_page.php?bug_id=9220 + set(CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake) +-include(language_support) +-workaround_9220(Fortran Fortran_language_works) +-if(FORTRAN_REQUIRED) +- enable_language(Fortran) +- set(Fortran_language_works ON) +-else() +- if(Fortran_language_works) +- enable_language(Fortran OPTIONAL) +- endif() +-endif() + + ######################################################################## + ############################# C++11 #################################### |