mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-01 06:49:56 +08:00
a563603129
* [cgns] update to 4.3.0 * [cgns] update CI baseline * Fix version database. * CMake nitpicks * Use rename rather than copy and remove * Add quotes * Guard explicit references to debug in case the user is using a release-only triplet. * Use in lists * Convert hdf5.patch from CRLF to LF * update version * LIOSTS => LISTS * Revert cgnstools feature * update version Co-authored-by: Billy Robert O'Neal <bion@microsoft.com> Co-authored-by: Jonliu1993 <13720414433@163.com>
13 lines
506 B
Diff
13 lines
506 B
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 46446da8a..a3d8cd98f 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -116,6 +116,7 @@ if (CGNS_ENABLE_LFS)
|
|
else ()
|
|
check_symbol_exists(open64 "sys/types.h;sys/stat.h;unistd.h" HAVE_OPEN64)
|
|
check_symbol_exists(lseek64 "sys/types.h;unistd.h" HAVE_LSEEK64)
|
|
+ add_definitions(-D_FILE_OFFSET_BITS=64 -D__LARGEFILE64_SOURCE -D_LARGEFILE64_SOURCE -D_LARGEFILE_SOURCE)
|
|
endif ()
|
|
if (HAVE_OPEN64)
|
|
add_compile_definitions(HAVE_OPEN64)
|