MEMFS: Do not require Python libs, only the executable

This commit is contained in:
Shahram Najm 2016-07-11 16:29:33 +01:00
parent 23dc3ccc2b
commit 91585fcdc2
1 changed files with 6 additions and 7 deletions

View File

@ -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 )