Skip to content

Commit

Permalink
Move location of default value
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbeckingsale committed Oct 2, 2017
1 parent 077e3d0 commit ae18d8b
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions cmake/BLTMacros.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,10 @@ macro(blt_add_library)
DESTINATION ${headers_build_dir})
endif()


# Clear value of _have_fortran from previous calls
set(_have_fortran False)

# Must tell fortran where to look for modules
# CMAKE_Fortran_MODULE_DIRECTORY is the location of generated modules
foreach (_file ${arg_SOURCES})
Expand All @@ -379,9 +383,6 @@ macro(blt_add_library)
target_include_directories(${arg_NAME} PRIVATE ${CMAKE_Fortran_MODULE_DIRECTORY})
endif()

# Otherwise _have_fortran is set for other targets
set(_have_fortran False)

blt_setup_target( NAME ${arg_NAME}
DEPENDS_ON ${arg_DEPENDS_ON} )

Expand Down

0 comments on commit ae18d8b

Please sign in to comment.