From 0fdfcd6e8a161b2d406df0226b01d2d253fd3e7c Mon Sep 17 00:00:00 2001 From: Simon Maertens Date: Mon, 4 May 2026 17:46:06 +0200 Subject: [PATCH] Warn the user if Index-64 API is build as extended API and as the default API redundantly. Co-authored-by: Copilot --- CMakeLists.txt | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ab9d16a4d..9da99bdad 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -116,12 +116,18 @@ else() set(LAPACKELIB "lapacke") set(TMGLIB "tmglib") endif() -message(STATUS "Build default API with 64-bit integers: ${BUILD_INDEX64}") +message(STATUS "Build default API as Index-64: ${BUILD_INDEX64}") -# By default build extended _64 API for supported compilers only. +# By default build extended _64 API option(BUILD_INDEX64_EXT_API "Build Index-64 API as extended API with _64 suffix" ON) message(STATUS "Build Index-64 API as extended API with _64 suffix: ${BUILD_INDEX64_EXT_API}") +if(BUILD_INDEX64_EXT_API AND BUILD_INDEX64) + message(WARNING + "Building Index-64 API redundantly as extended API and default API." + "Consider disabling one of them (BUILD_INDEX64_EXT_API / BUILD_INDEX64).") +endif() + include(GNUInstallDirs) # Configure the warning and code coverage suppression file