From 35d12dd2e5365fa7c6eb90802de2599a456797b3 Mon Sep 17 00:00:00 2001 From: Shahram Najm Date: Mon, 19 Dec 2016 13:25:48 +0000 Subject: [PATCH] SUP-1871 --- memfs/CMakeLists.txt | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/memfs/CMakeLists.txt b/memfs/CMakeLists.txt index 7f9c466ec..23a4a913a 100644 --- a/memfs/CMakeLists.txt +++ b/memfs/CMakeLists.txt @@ -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()