mirror of https://github.com/ecmwf/eccodes.git
MEMFS: Do not require Python libs, only the executable
This commit is contained in:
parent
23dc3ccc2b
commit
91585fcdc2
|
@ -90,19 +90,18 @@ else()
|
||||||
set( HAVE_FORTRAN 0 )
|
set( HAVE_FORTRAN 0 )
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# memfs
|
# memfs requires only Python executable and not its libraries
|
||||||
|
|
||||||
ecbuild_add_option( FEATURE MEMFS
|
ecbuild_add_option( FEATURE MEMFS
|
||||||
DESCRIPTION "Memory based access to definitions/samples"
|
DESCRIPTION "Memory based access to definitions/samples"
|
||||||
DEFAULT OFF
|
DEFAULT OFF
|
||||||
CONDITION EC_HAVE_FMEMOPEN OR EC_HAVE_FUNOPEN
|
CONDITION EC_HAVE_FMEMOPEN OR EC_HAVE_FUNOPEN
|
||||||
REQUIRED_PACKAGES "Python VERSION 2.6"
|
REQUIRED_PACKAGES "Python VERSION 2.6 NO_LIBS"
|
||||||
)
|
)
|
||||||
|
|
||||||
if( HAVE_MEMFS AND "${CMAKE_C_COMPILER_ID}" STREQUAL "Cray")
|
#if( HAVE_MEMFS AND "${CMAKE_C_COMPILER_ID}" STREQUAL "Cray")
|
||||||
set( HAVE_MEMFS OFF )
|
# set( HAVE_MEMFS OFF )
|
||||||
ecbuild_warn("MEMFS not supported with Cray C compiler")
|
# ecbuild_warn("MEMFS not supported with Cray C compiler")
|
||||||
endif()
|
#endif()
|
||||||
|
|
||||||
# advanced options (not visible in cmake-gui )
|
# advanced options (not visible in cmake-gui )
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue