From 8c717df9def7ccd64efd0839b7dcef42df961778 Mon Sep 17 00:00:00 2001 From: Max Hawkins Date: Thu, 7 Nov 2024 09:55:17 -0600 Subject: [PATCH] Remove redundant find CUDA --- CMakeLists.txt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index e51be6835c..22268e2502 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -127,7 +127,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") if (CMAKE_BUILD_TYPE STREQUAL "Debug") add_compile_options( - -Wall + -Wall -fcheck=all,no-array-temps -fbacktrace -fimplicit-none @@ -142,7 +142,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU") add_compile_options( $<$:-fallow-invalid-boz> $<$:-fallow-argument-mismatch> - $<$:-fcheck=bounds> + $<$:-fcheck=bounds> ) endif() elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray") @@ -155,7 +155,7 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray") ) add_link_options("SHELL:-hkeepfiles") - + if (CMAKE_BUILD_TYPE STREQUAL "Debug") add_compile_options( "SHELL:-h acc_model=auto_async_none" @@ -231,7 +231,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release") else() message(STATUS "IPO / LTO is NOT available") endif() - endif() + endif() endif() if (CMAKE_BUILD_TYPE STREQUAL "Debug") @@ -295,7 +295,7 @@ macro(HANDLE_SOURCES target useCommon) string(TOUPPER ${target} ${target}_UPPER) - # Gather: + # Gather: # * src/[,(common)]/*.f90 # * (if any) /modules//*.f90 file(GLOB ${target}_F90s CONFIGURE_DEPENDS "${${target}_DIR}/*.f90" @@ -388,7 +388,7 @@ function(MFC_SETUP_TARGET) # A little hacky, but it *is* an edge-case for *one* compiler. if (NVHPC_USE_TWO_PASS_IPO) add_library(${ARGS_TARGET}_lib OBJECT ${ARGS_SOURCES}) - target_compile_options(${ARGS_TARGET}_lib PRIVATE + target_compile_options(${ARGS_TARGET}_lib PRIVATE $<$:-Mextract=lib:${ARGS_TARGET}_lib> $<$:-Minline> )