Skip to content

Commit 8c717df

Browse files
committed
Remove redundant find CUDA
1 parent ce421bb commit 8c717df

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

CMakeLists.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
127127

128128
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
129129
add_compile_options(
130-
-Wall
130+
-Wall
131131
-fcheck=all,no-array-temps
132132
-fbacktrace
133133
-fimplicit-none
@@ -142,7 +142,7 @@ if (CMAKE_Fortran_COMPILER_ID STREQUAL "GNU")
142142
add_compile_options(
143143
$<$<COMPILE_LANGUAGE:Fortran>:-fallow-invalid-boz>
144144
$<$<COMPILE_LANGUAGE:Fortran>:-fallow-argument-mismatch>
145-
$<$<COMPILE_LANGUAGE:Fortran>:-fcheck=bounds>
145+
$<$<COMPILE_LANGUAGE:Fortran>:-fcheck=bounds>
146146
)
147147
endif()
148148
elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
@@ -155,7 +155,7 @@ elseif (CMAKE_Fortran_COMPILER_ID STREQUAL "Cray")
155155
)
156156

157157
add_link_options("SHELL:-hkeepfiles")
158-
158+
159159
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
160160
add_compile_options(
161161
"SHELL:-h acc_model=auto_async_none"
@@ -231,7 +231,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Release")
231231
else()
232232
message(STATUS "IPO / LTO is NOT available")
233233
endif()
234-
endif()
234+
endif()
235235
endif()
236236

237237
if (CMAKE_BUILD_TYPE STREQUAL "Debug")
@@ -295,7 +295,7 @@ macro(HANDLE_SOURCES target useCommon)
295295

296296
string(TOUPPER ${target} ${target}_UPPER)
297297

298-
# Gather:
298+
# Gather:
299299
# * src/[<target>,(common)]/*.f90
300300
# * (if any) <build>/modules/<target>/*.f90
301301
file(GLOB ${target}_F90s CONFIGURE_DEPENDS "${${target}_DIR}/*.f90"
@@ -388,7 +388,7 @@ function(MFC_SETUP_TARGET)
388388
# A little hacky, but it *is* an edge-case for *one* compiler.
389389
if (NVHPC_USE_TWO_PASS_IPO)
390390
add_library(${ARGS_TARGET}_lib OBJECT ${ARGS_SOURCES})
391-
target_compile_options(${ARGS_TARGET}_lib PRIVATE
391+
target_compile_options(${ARGS_TARGET}_lib PRIVATE
392392
$<$<COMPILE_LANGUAGE:Fortran>:-Mextract=lib:${ARGS_TARGET}_lib>
393393
$<$<COMPILE_LANGUAGE:Fortran>:-Minline>
394394
)

0 commit comments

Comments
 (0)