mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
Add support for use of precompiled Octave binaries on Windows
This commit is contained in:
@@ -1046,11 +1046,25 @@ add_subdirectory(ApplicationExeCode)
|
|||||||
|
|
||||||
option(RESINSIGHT_USE_EXTERNAL_OCTAVE_PLUGINS "Use external Octave plugins" OFF)
|
option(RESINSIGHT_USE_EXTERNAL_OCTAVE_PLUGINS "Use external Octave plugins" OFF)
|
||||||
if(RESINSIGHT_USE_EXTERNAL_OCTAVE_PLUGINS)
|
if(RESINSIGHT_USE_EXTERNAL_OCTAVE_PLUGINS)
|
||||||
FetchContent_Declare(
|
|
||||||
external-octave_plugins
|
if(MSVC)
|
||||||
URL https://github.com/CeetronSolutions/resinsight-dependencies/releases/latest/download/OctavePlugins-0.1.1-Linux.tar.gz
|
set(OCTAVE_PLUGINS_URL
|
||||||
|
"https://github.com/CeetronSolutions/resinsight-dependencies/releases/latest/download/OctavePlugins-0.1.1-win64.zip"
|
||||||
|
)
|
||||||
|
else()
|
||||||
|
set(OCTAVE_PLUGINS_URL
|
||||||
|
"https://github.com/CeetronSolutions/resinsight-dependencies/releases/latest/download/OctavePlugins-0.1.1-Linux.tar.gz"
|
||||||
|
)
|
||||||
|
endif(MSVC)
|
||||||
|
|
||||||
|
message(
|
||||||
|
STATUS "Starting to fetch OctavePlugin binaries from ${OCTAVE_PLUGINS_URL}"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
FetchContent_Declare(external-octave_plugins URL ${OCTAVE_PLUGINS_URL})
|
||||||
|
|
||||||
|
message(STATUS "Completed fetching of OctavePlugin")
|
||||||
|
|
||||||
FetchContent_MakeAvailable(external-octave_plugins)
|
FetchContent_MakeAvailable(external-octave_plugins)
|
||||||
|
|
||||||
file(GLOB FILE_AND_SYMLINKS ${external-octave_plugins_SOURCE_DIR}/*.oct)
|
file(GLOB FILE_AND_SYMLINKS ${external-octave_plugins_SOURCE_DIR}/*.oct)
|
||||||
@@ -1063,6 +1077,10 @@ else(RESINSIGHT_USE_EXTERNAL_OCTAVE_PLUGINS)
|
|||||||
if(OCTAVE_MKOCTFILE)
|
if(OCTAVE_MKOCTFILE)
|
||||||
message(STATUS "Adding OctavePlugin library")
|
message(STATUS "Adding OctavePlugin library")
|
||||||
|
|
||||||
|
# The build of Octave Plugins is currently not working when Ninja is used as
|
||||||
|
# build tool A separate build job is configured to build the Octave Plugins,
|
||||||
|
# and the build is cached at GitHub
|
||||||
|
#
|
||||||
# add_subdirectory(Octave/OctavePlugin)
|
# add_subdirectory(Octave/OctavePlugin)
|
||||||
else(OCTAVE_MKOCTFILE)
|
else(OCTAVE_MKOCTFILE)
|
||||||
message(
|
message(
|
||||||
|
Reference in New Issue
Block a user