Replace ENABLE_LARGE_FILE_SUPPORT with NETCDF_ENABLE_LARGE_FILE_SUPPORT

This commit is contained in:
Kyle Shores 2024-03-18 15:37:08 -05:00
parent 39a04033d3
commit 57600055d0

View File

@ -839,8 +839,8 @@ endif()
# Linux specific large file support flags.
# Modelled after check in CMakeLists.txt for hdf5.
option(ENABLE_LARGE_FILE_SUPPORT "Enable large file support." ON)
if(ENABLE_LARGE_FILE_SUPPORT)
option(NETCDF_ENABLE_LARGE_FILE_SUPPORT "Enable large file support." ON)
if(NETCDF_ENABLE_LARGE_FILE_SUPPORT)
if(MSVC)
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} /LARGEADDRESSAWARE")
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} /LARGEADDRESSAWARE")