set(CAKE_PKG_CONFIGURATION_TYPES Debug Release)
set(CAKE_PKG_CMAKE_ARGS
  -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_LIST_DIR}/_install
  -DCMAKE_PREFIX_PATH=${CMAKE_CURRENT_LIST_DIR}/_install
  )

if(NOT "$ENV{CMAKE_GENERATOR}" STREQUAL "")
  list(APPEND CAKE_PKG_CMAKE_ARGS -G "$ENV{CMAKE_GENERATOR}")
endif()

# CAKE_BINARY_DIR_PREFIX and CAKE_CMAKE_ARGS
# will be used only if your execute './run_cake' instead of './run'

set(CAKE_BINARY_DIR_PREFIX ${CMAKE_CURRENT_LIST_DIR}/_build)
set(CAKE_CMAKE_ARGS "${CAKE_PKG_CMAKE_ARGS}")




