hostname lacks arguments on mingw
@@ -1152,7 +1152,7 @@ IF(ENABLE_TESTS)
SET(NC_CTEST_DROP_LOC_PREFIX "" CACHE STRING "Prefix for Dashboard location on remote server when using CTest-based testing.")
SET(SUBMIT_URL "https://cdash.unidata.ucar.edu:443")
FIND_PROGRAM(HOSTNAME_CMD NAMES hostname)
- IF(NOT MSVC)
+ IF(NOT WIN32)
SET(HOSTNAME_ARG "-s")
ENDIF()
IF(HOSTNAME_CMD)
