remove deleted xlntarrow dependency from xlntpyarrow target and don't compile xlntarrow when ARROW=OFF

This commit is contained in:
Thomas Fussell 2017-07-11 21:30:43 -07:00
parent 5c033905fb
commit e6b0545c26
2 changed files with 5 additions and 2 deletions

View File

@ -63,6 +63,10 @@ file(GLOB WORKBOOK_SOURCES ${XLNT_SOURCE_DIR}/workbook/*.cpp)
file(GLOB WORKSHEET_HEADERS ${XLNT_INCLUDE_DIR}/xlnt/worksheet/*.hpp)
file(GLOB WORKSHEET_SOURCES ${XLNT_SOURCE_DIR}/worksheet/*.cpp)
if(NOT ARROW)
list(REMOVE_ITEM UTILS_SOURCES ${XLNT_SOURCE_DIR}/utils/xlntarrow.cpp)
endif()
file(GLOB DETAIL_ROOT_HEADERS ${XLNT_SOURCE_DIR}/detail/*.hpp)
file(GLOB DETAIL_ROOT_SOURCES ${XLNT_SOURCE_DIR}/detail/*.cpp)
file(GLOB DETAIL_CRYPTOGRAPHY_HEADERS ${XLNT_SOURCE_DIR}/detail/cryptography/*.hpp)

View File

@ -10,5 +10,4 @@ configure_file("${CMAKE_CURRENT_SOURCE_DIR}/setup.py.cmake"
add_custom_target(xlntpyarrow ALL
COMMAND python setup.py build
DEPENDS xlntarrow
SOURCES xlntpyarrow.cpp setup.py.cmake)
SOURCES xlntpyarrow.cpp setup.py.cmake)