Skip to content

Commit

Permalink
cmake: exclude fortran/finufftfort.cpp by default
Browse files Browse the repository at this point in the history
This should only be compiled if `FINUFFT_BUILD_FORTRAN` is set to `ON`.
  • Loading branch information
janden committed Aug 20, 2024
1 parent cdcccbe commit 04f1dcb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ endif()
# double precision The single precision compilation is done with -DSINGLE
set(FINUFFT_PRECISION_DEPENDENT_SOURCES
src/finufft.cpp src/fft.cpp src/simpleinterfaces.cpp src/spreadinterp.cpp
src/utils.cpp fortran/finufftfort.cpp)
src/utils.cpp)

# If we're building for Fortran, make sure we also include the translation
# layer.
if(FINUFFT_BUILD_FORTRAN)
list(APPEND FINUFFT_PRECISION_DEPENDENT_SOURCES fortran/finufftfort.cpp)
endif()

# set linker flags for sanitizer
set(FINUFFT_SANITIZER_FLAGS)
Expand Down

0 comments on commit 04f1dcb

Please sign in to comment.