From 1bba969a4a7cc612e919884764c324df35188d90 Mon Sep 17 00:00:00 2001 From: Dirk Ziegelmeier Date: Fri, 12 Oct 2018 22:12:07 +0200 Subject: [PATCH] Next try to fix CMake build on Travis --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 23b66be4..8410c1f3 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,6 @@ elseif(${CMAKE_SYSTEM_NAME} STREQUAL Linux OR ${CMAKE_SYSTEM_NAME} STREQUAL Darw add_subdirectory(${LWIP_DIR}/contrib/ports/unix/example_app) else() message(WARNING "Host ${CMAKE_SYSTEM_NAME} is not supported to build example_app") - include(src/Filelists.cmake) endif() # Source package generation @@ -27,5 +26,8 @@ set(CPACK_SOURCE_PACKAGE_FILE_NAME "lwip-${LWIP_VERSION_MAJOR}.${LWIP_VERSION_MI include(CPack) # Target for package generation +if ("${lwipcore_SRCS}" STREQUAL "") + include(src/Filelists.cmake) +endif() add_custom_target(dist COMMAND ${CMAKE_MAKE_PROGRAM} package_source) add_dependencies(dist lwipdocs)