More helpful error message if libparquet_arrow not built

Change-Id: I9d4fb8166fcd1c34373cfa5b73e156edf61f5b29
This commit is contained in:
Wes McKinney committed 2017-03-25 22:54:25 -04:00
1 parent 685ebf4900
commit c18ca816a0
1 file changed
+10 -8
+10 -8
View File
@@ -68,13 +68,21 @@ else ()
set(PARQUET_ARROW_FOUND FALSE)
endif ()
if (PARQUET_FOUND)
if (PARQUET_FOUND AND PARQUET_ARROW_FOUND)
if (NOT Parquet_FIND_QUIETLY)
message(STATUS "Found the Parquet library: ${PARQUET_LIBRARIES}")
message(STATUS "Found the Parquet Arrow library: ${PARQUET_ARROW_LIBS}")
endif ()
else ()
if (NOT Parquet_FIND_QUIETLY)
set(PARQUET_ERR_MSG "Could not find the Parquet library. Looked in ")
if (NOT PARQUET_FOUND)
set(PARQUET_ERR_MSG "${PARQUET_ERR_MSG} Could not find the parquet library.")
endif()
if (NOT PARQUET_ARROW_FOUND)
set(PARQUET_ERR_MSG "${PARQUET_ERR_MSG} Could not find the parquet_arrow library. Did you build with -DPARQUET_ARROW=on?")
endif()
set(PARQUET_ERR_MSG "${PARQUET_ERR_MSG} Looked in ")
if ( _parquet_roots )
set(PARQUET_ERR_MSG "${PARQUET_ERR_MSG} in ${_parquet_roots}.")
else ()
@@ -88,12 +96,6 @@ else ()
endif ()
endif ()
if (PARQUET_ARROW_FOUND)
if (NOT Parquet_FIND_QUIETLY)
message(STATUS "Found the Parquet Arrow library: ${PARQUET_ARROW_LIBS}")
endif()
endif()
mark_as_advanced(
PARQUET_FOUND
PARQUET_INCLUDE_DIR