Skip to content

Commit 033ab49

Browse files
committed
MAPVAR: GFortran optimizes out do loop; disable optmization for that file
1 parent d8336fc commit 033ab49

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/seacas/applications/mapvar/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ INCLUDE(FortranSettings)
22

33
TRIBITS_SUBPACKAGE(Mapvar)
44

5+
if (NOT CMAKE_BUILD_TYPE STREQUAL "DEBUG" AND NOT CMAKE_BUILD_TYPE STREQUAL "Debug")
6+
SET_SOURCE_FILES_PROPERTIES(mapvar.f PROPERTIES COMPILE_FLAGS -O1)
7+
endif()
8+
59
TRIBITS_INCLUDE_DIRECTORIES(
610
"${CMAKE_CURRENT_SOURCE_DIR}"
711
)

0 commit comments

Comments
 (0)