File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -915,13 +915,17 @@ if(fftw3)
915
915
message (STATUS "Looking for FFTW3" )
916
916
find_package (FFTW)
917
917
if (NOT FFTW_FOUND)
918
- if (fail-on -missing)
919
- message (SEND_ERROR "FFTW3 libraries not found and they are required (fftw3 option enabled)" )
920
- else ()
921
- message (STATUS "FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation" )
922
- message (STATUS " Alternatively, you can also enable the option 'builtin_fftw3' to build FFTW3 internally'" )
923
- message (STATUS " For the time being switching OFF 'fftw3' option" )
924
- set (fftw3 OFF CACHE BOOL "Disabled because FFTW3 not found and builtin_fftw3 disabled (${fftw3_description} )" FORCE)
918
+ set (builtin_fftw3 ON CACHE BOOL "Enabled because FFTW3 not found (${fftw3_description} )" FORCE)
919
+ ROOT_CHECK_CONNECTION_AND_DISABLE_OPTION("builtin_fftw3" )
920
+ if (NOT builtin_fftw3)
921
+ if (fail-on -missing)
922
+ message (SEND_ERROR "FFTW3 libraries not found and they are required (fftw3 option enabled)" )
923
+ else ()
924
+ message (STATUS "FFTW3 not found. Set [environment] variable FFTW_DIR to point to your FFTW3 installation" )
925
+ message (STATUS " Alternatively, you can also enable your Internet connection so that the autoset option 'builtin_fftw3' can build FFTW3 internally'" )
926
+ message (STATUS " For the time being switching OFF 'fftw3' option" )
927
+ set (fftw3 OFF CACHE BOOL "Disabled because FFTW3 not found and builtin_fftw3 unavailable (${fftw3_description} )" FORCE)
928
+ endif ()
925
929
endif ()
926
930
endif ()
927
931
endif ()
You can’t perform that action at this time.
0 commit comments