Commit 30d655f9 authored by wmayer's avatar wmayer
Browse files

Set FREECAD_USE_EXTERNAL_ZIPIOS if zipios++ sources are missing

parent 63578ee1
......@@ -116,6 +116,10 @@ if (FREECAD_BUILD_DEBIAN)
set(FREECAD_USE_EXTERNAL_PIVY ON)
endif (FREECAD_BUILD_DEBIAN)
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/src/zipios++)
set(FREECAD_USE_EXTERNAL_ZIPIOS ON)
endif ()
# ==============================================================================
if(FREECAD_LIBPACK_USE)
......
......@@ -68,7 +68,11 @@ if(SWIG_FOUND)
add_definitions(-DHAVE_SWIG=1)
endif(SWIG_FOUND)
if (EXISTS ${CMAKE_SOURCE_DIR}/src/zipios++ AND NOT FREECAD_USE_EXTERNAL_ZIPIOS)
if (NOT EXISTS ${CMAKE_SOURCE_DIR}/src/zipios++)
set(FREECAD_USE_EXTERNAL_ZIPIOS TRUE)
endif ()
if (NOT FREECAD_USE_EXTERNAL_ZIPIOS)
SET(zipios_SRCS
../zipios++/backbuffer.h
../zipios++/basicentry.cpp
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment