From 0433d80861caa80d9bc65b6eb5d698c34d7b5aac Mon Sep 17 00:00:00 2001 From: Rene Gassmoeller Date: Thu, 20 Jun 2024 20:44:07 -0400 Subject: [PATCH] Update src/CMakeLists.txt Co-authored-by: Philipp Edelmann --- src/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 409ba3f2..4af2dc7b 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,7 +36,8 @@ add_dependencies(rayleigh run_param_header) target_include_directories(rayleigh PRIVATE ${PROJECT_SOURCE_DIR}/src/Include ${CMAKE_CURRENT_BINARY_DIR}) -set(RAYLEIGH_CPU_OPTIMIZATIONS "none" CACHE PATH "Specify a CPU architecture to build for. Currently only 'native' or 'none' are supported.") +set(RAYLEIGH_CPU_OPTIMIZATIONS "none" CACHE STRING "Specify a CPU architecture to build for. Currently only 'native' or 'none' are supported.") +set_property(CACHE RAYLEIGH_CPU_OPTIMIZATIONS PROPERTY STRINGS "none" "native") if (RAYLEIGH_CPU_OPTIMIZATIONS STREQUAL "native") if(CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")