Skip to content

Commit 99a2c2a

Browse files
authored
Change compile definitions for hdf5-static target
1 parent e12390f commit 99a2c2a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -356,8 +356,8 @@ set(HDF5_ENABLE_SZIP_SUPPORT OFF)
356356

357357
add_subdirectory(${CMAKE_SOURCE_DIR}/gitmodules/hdf5)
358358

359-
if (WIN32)
360-
target_compile_definitions(hdf5-static PRIVATE _GNU_SOURCE)
359+
if (MINGW)
360+
target_compile_definitions(hdf5-static PRIVATE HAVE_VASPRINTF)
361361
endif()
362362

363363
foreach(file ${hdf5_GENERATED_HEADERS})

0 commit comments

Comments
 (0)