mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-23 11:40:07 +08:00
20 lines
672 B
Diff
20 lines
672 B
Diff
|
diff --git a/libgeotiff/CMakeLists.txt b/libgeotiff/CMakeLists.txt
|
||
|
index 80fe121..5c1430d 100644
|
||
|
--- a/libgeotiff/CMakeLists.txt
|
||
|
+++ b/libgeotiff/CMakeLists.txt
|
||
|
@@ -80,8 +80,12 @@ SET(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${PROJECT_BINARY_DIR}/lib)
|
||
|
|
||
|
IF(WIN32)
|
||
|
IF(MSVC)
|
||
|
- ADD_DEFINITIONS(-DBUILD_AS_DLL=1)
|
||
|
- ADD_DEFINITIONS(/DW4)
|
||
|
+ IF(BUILD_SHARED_LIBS)
|
||
|
+ ADD_DEFINITIONS(-DBUILD_AS_DLL=1)
|
||
|
+ ELSE()
|
||
|
+ ADD_DEFINITIONS(-DBUILD_AS_DLL=0)
|
||
|
+ ENDIF()
|
||
|
+ ADD_DEFINITIONS(/DW4)
|
||
|
if (NOT (MSVC_VERSION VERSION_LESS 1400))
|
||
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE)
|
||
|
ADD_DEFINITIONS(-D_CRT_SECURE_NO_WARNINGS)
|