lte: Check if ENABLE_EMUNETDEV is defined before checking its value

This commit is contained in:
Gabriel Ferreira
2025-07-26 17:13:24 +02:00
parent f3c779e393
commit 046bbaa3cc
2 changed files with 30 additions and 22 deletions

View File

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

View File

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