2020-10-14 05:38:05 +08:00
|
|
|
diff --git a/libgeotiff/CMakeLists.txt b/libgeotiff/CMakeLists.txt
|
2021-11-11 06:54:19 +08:00
|
|
|
index b4a3cee..fd9f0a5 100644
|
2020-10-14 05:38:05 +08:00
|
|
|
--- a/libgeotiff/CMakeLists.txt
|
|
|
|
+++ b/libgeotiff/CMakeLists.txt
|
2021-11-11 06:54:19 +08:00
|
|
|
@@ -80,7 +80,11 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
2020-10-14 05:38:05 +08:00
|
|
|
|
|
|
|
IF(WIN32)
|
|
|
|
IF(MSVC)
|
|
|
|
+ IF(BUILD_SHARED_LIBS)
|
2021-11-11 06:54:19 +08:00
|
|
|
ADD_DEFINITIONS(-DBUILD_AS_DLL=1)
|
2020-10-14 05:38:05 +08:00
|
|
|
+ ELSE()
|
2021-11-11 06:54:19 +08:00
|
|
|
+ ADD_DEFINITIONS(-DBUILD_AS_DLL=0)
|
|
|
|
+ ENDIF()
|
|
|
|
ADD_DEFINITIONS(/DW4)
|
2020-10-14 05:38:05 +08:00
|
|
|
if (NOT (MSVC_VERSION VERSION_LESS 1400))
|
|
|
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
|