Skip to content

Commit

Permalink
cmake/main: rename VECTORIZED_CMAKE_DIR to REDPANDA_CMAKE_DIR
Browse files Browse the repository at this point in the history
Signed-off-by: Ivo Jimenez <[email protected]>
(cherry picked from commit 13e56fd)
  • Loading branch information
ivotron committed Jun 19, 2024
1 parent 7ebdc0a commit 3530a46
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
cmake_minimum_required(VERSION 3.12.0)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
# keep this minimal. modify `cmake/main.cmake` file instead
if(NOT VECTORIZED_CMAKE_DIR)
include(main)
else()
include(${VECTORIZED_CMAKE_DIR}/main.cmake)
# Redirect control for internal Redpanda builds
if(REDPANDA_CMAKE_DIR)
cmake_minimum_required(VERSION 3.22)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(${REDPANDA_CMAKE_DIR}/main.cmake)
return()
endif()

cmake_minimum_required(VERSION 3.24)
project(redpanda LANGUAGES CXX)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(main)

0 comments on commit 3530a46

Please sign in to comment.