lte: Check if ENABLE_EMUNETDEV is defined before checking its value
This commit is contained in:
@@ -2,21 +2,25 @@ set(emu_sources)
|
||||
set(emu_headers)
|
||||
set(emu_features)
|
||||
set(emu_libraries)
|
||||
if(${ENABLE_EMU}
|
||||
AND ${ENABLE_EMUNETDEV}
|
||||
if(DEFINED
|
||||
ENABLE_EMUNETDEV
|
||||
)
|
||||
set(emu_sources
|
||||
helper/emu-epc-helper.cc
|
||||
)
|
||||
set(emu_headers
|
||||
helper/emu-epc-helper.h
|
||||
)
|
||||
set(emu_features
|
||||
EmuFdNetDevice
|
||||
)
|
||||
set(emu_libraries
|
||||
${libfd-net-device}
|
||||
if(${ENABLE_EMU}
|
||||
AND ${ENABLE_EMUNETDEV}
|
||||
)
|
||||
set(emu_sources
|
||||
helper/emu-epc-helper.cc
|
||||
)
|
||||
set(emu_headers
|
||||
helper/emu-epc-helper.h
|
||||
)
|
||||
set(emu_features
|
||||
EmuFdNetDevice
|
||||
)
|
||||
set(emu_libraries
|
||||
${libfd-net-device}
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
set(source_files
|
||||
|
||||
@@ -36,15 +36,19 @@ foreach(
|
||||
)
|
||||
endforeach()
|
||||
|
||||
if(${ENABLE_EMU}
|
||||
AND ${ENABLE_EMUNETDEV}
|
||||
if(DEFINED
|
||||
ENABLE_EMUNETDEV
|
||||
)
|
||||
build_lib_example(
|
||||
NAME lena-simple-epc-emu
|
||||
SOURCE_FILES lena-simple-epc-emu.cc
|
||||
LIBRARIES_TO_LINK
|
||||
${liblte}
|
||||
${libfd-net-device}
|
||||
${libconfig-store}
|
||||
if(${ENABLE_EMU}
|
||||
AND ${ENABLE_EMUNETDEV}
|
||||
)
|
||||
build_lib_example(
|
||||
NAME lena-simple-epc-emu
|
||||
SOURCE_FILES lena-simple-epc-emu.cc
|
||||
LIBRARIES_TO_LINK
|
||||
${liblte}
|
||||
${libfd-net-device}
|
||||
${libconfig-store}
|
||||
)
|
||||
endif()
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user