Skip to content

Commit

Permalink
Update src/CMakeLists.txt
Browse files Browse the repository at this point in the history
Co-authored-by: Philipp Edelmann <[email protected]>
  • Loading branch information
gassmoeller and tukss committed Jun 21, 2024
1 parent af39361 commit 0433d80
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 0433d80

Please sign in to comment.