Skip to content

Commit 985d6e7

Browse files
rem1776rem1776
authored andcommitted
address review comments
1 parent acf8c1c commit 985d6e7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

CMakeLists.txt

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,14 @@ option(USE_DEPRECATED_IO "THIS OPTION HAS NO EFFECT AND WILL BE REMOVED IN A
6969

7070
if(32BIT)
7171
list(APPEND kinds "r4")
72+
message(STATUS "Building library with 4-byte real defaults (with mixed precision real support for most modules).")
7273
endif()
7374
if(64BIT)
7475
list(APPEND kinds "r8")
76+
message(STATUS "Building library with 8-byte real defaults (with mixed precision real support for most modules).")
7577
endif()
7678
if(NOT kinds)
77-
message(STATUS "Single Precision 32BIT: ${32BIT}")
78-
message(STATUS "Double Precision 64BIT: ${64BIT}")
79-
message(STATUS "No kind specified, building default double precision (with mixed precision support). Real size will not be included in built library name.")
79+
message(STATUS "Building library with 8-byte real defaults (with mixed precision 4-byte real support for most modules). Real size will not be included in built library name.")
8080
endif()
8181

8282
# Find dependencies
@@ -272,11 +272,6 @@ if(LARGEFILE)
272272
list(APPEND fms_defs use_LARGEFILE)
273273
endif()
274274

275-
# Precision-based compiler definitions
276-
if(32BIT)
277-
list(APPEND r4_defs OVERLOAD_R4 OVERLOAD_R8)
278-
endif()
279-
280275
# Add platform specific compiler definitions
281276
if(APPLE)
282277
list(APPEND fms_defs __APPLE__)
@@ -287,7 +282,7 @@ include(fms_compiler_flags)
287282

288283
# If netCDF was not built with HDF5 parallel I/O features, set up the macro -DNO_NC_PARALLEL4
289284
IF(NOT NetCDF_PARALLEL)
290-
MESSAGE(WARNING "netCDF was not build with HDF5 parallel I/O features, so collective netcdf io is not allowed")
285+
MESSAGE(WARNING "netCDF was not build with HDF5 parallel I/O features, so parallel netcdf io is not allowed")
291286
list(APPEND fms_defs NO_NC_PARALLEL4)
292287
ENDIF()
293288

@@ -593,7 +588,7 @@ if(NOT kinds)
593588
set(fmsLibraryName FMS::fms)
594589
elseif(64BIT)
595590
set(fmsLibraryName FMS::fms_r8)
596-
else()
591+
elseif(32BIT)
597592
set(fmsLibraryName FMS::fms_r4)
598593
endif()
599594

0 commit comments

Comments
 (0)