Error if user tries to build from master
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 698f6d7..fa4fb21 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -18,6 +18,9 @@
 # Require cmake that supports BYPRODUCTS in add_custom_command, ExternalProject_Add [1].
 cmake_minimum_required(VERSION 3.2.0)
 
+message(FATAL_ERROR "Building parquet-cpp master is no longer supported. "
+  "Build from C++ codebase in https://github.com/apache/arrow with -DARROW_PARQUET=ON")
+
 file(READ "${CMAKE_CURRENT_SOURCE_DIR}/.parquetcppversion" PARQUET_VERSION)
 string(REPLACE "\n" "" PARQUET_VERSION "${PARQUET_VERSION}")
 string(REGEX MATCH "^([0-9]+\.[0-9]+\.[0-9]+(\.[0-9]+)?)" VERSION ${PARQUET_VERSION})