mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 11:11:38 +08:00
67d3662845
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
35 lines
987 B
Diff
35 lines
987 B
Diff
From 84e537f3bd0db74b22ffebb3746d292daf4f4e59 Mon Sep 17 00:00:00 2001
|
|
From: Hiroshi Miura <miurahr@linux.com>
|
|
Date: Thu, 15 Feb 2018 13:17:14 +0900
|
|
Subject: [PATCH 5/5] Control shared library build with option
|
|
|
|
Signed-off-by: Hiroshi Miura <miurahr@linux.com>
|
|
---
|
|
CMakeLists.txt | 3 ++-
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index c52cfb4..5890203 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -5,14 +5,15 @@
|
|
# Author: Mateusz Loskot <mateusz@loskot.net>
|
|
#
|
|
###############################################################################
|
|
+CMAKE_MINIMUM_REQUIRED(VERSION 3.1.0)
|
|
PROJECT(GeoTIFF)
|
|
|
|
SET(GEOTIFF_LIB_NAME geotiff)
|
|
SET(GEOTIFF_LIBRARY_TARGET geotiff_library)
|
|
+option(BUILD_SHARE_LIBS "Set ON to build shared library." ON)
|
|
|
|
##############################################################################
|
|
# CMake settings
|
|
-CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
|
|
|
|
SET(CMAKE_COLOR_MAKEFILE ON)
|
|
|
|
--
|
|
2.16.1
|
|
|