From b9b92084c8f198413c1fe88e29ebc9c90a8ac909 Mon Sep 17 00:00:00 2001 From: Steve Bronder Date: Thu, 21 Nov 2024 16:36:27 -0500 Subject: [PATCH] print user options for cmake at start of run --- CMakeLists.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index c1105b94f08..68b78596cbd 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -29,6 +29,16 @@ if(POLICY CMP0069) cmake_policy(SET CMP0069 NEW) endif() + # Print all selected user options +message(STATUS "Stan Math Library Configuration:") +message(STATUS " Build Documentation: ${STAN_BUILD_DOCS}") +message(STATUS " Test Headers: ${STAN_TEST_HEADERS}") +message(STATUS " Disable Range Checks: ${STAN_NO_RANGE_CHECKS}") +message(STATUS " Enable MPI: ${STAN_MPI}") +message(STATUS " Enable OpenCL: ${STAN_OPENCL}") +message(STATUS " Enable Threads: ${STAN_THREADS}") + + # Set compiler flags if(CMAKE_CXX_COMPILER_ID MATCHES "Clang") add_compile_options(-Wno-deprecated-declarations)