This commit is contained in:
Shahram Najm 2016-12-19 13:25:48 +00:00
parent 310db9bc33
commit 35d12dd2e5
1 changed files with 5 additions and 4 deletions

View File

@ -12,7 +12,8 @@ set_source_files_properties( ${CMAKE_CURRENT_BINARY_DIR}/memfs.c PROPERTIES OBJE
# "${PROJECT_SOURCE_DIR}/memfs.py" ${definition_files}"
)
ecbuild_add_library(TARGET eccodes_memfs
CONDITION HAVE_MEMFS
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
GENERATED ${CMAKE_CURRENT_BINARY_DIR}/memfs.c )
if (HAVE_MEMFS)
ecbuild_add_library(TARGET eccodes_memfs
SOURCES ${CMAKE_CURRENT_BINARY_DIR}/memfs.c
GENERATED ${CMAKE_CURRENT_BINARY_DIR}/memfs.c)
endif()