aboutsummaryrefslogtreecommitdiff
path: root/cmake/CMakeLists.txt
diff options
context:
space:
mode:
authorKonstantin Podsvirov <konstantin@podsvirov.pro>2015-09-15 15:36:20 +0300
committerKonstantin Podsvirov <konstantin@podsvirov.pro>2015-09-15 15:36:20 +0300
commit0a22fe59b7538bee74daa3c18eddd9d768d3d01e (patch)
tree33594595fd0c77493925c8a470d91d55b93ea4a0 /cmake/CMakeLists.txt
parent620bd7418d5ae0ac275e04ab216449a64e2cdc9d (diff)
downloadprotobuf-0a22fe59b7538bee74daa3c18eddd9d768d3d01e.tar.gz
protobuf-0a22fe59b7538bee74daa3c18eddd9d768d3d01e.tar.bz2
protobuf-0a22fe59b7538bee74daa3c18eddd9d768d3d01e.zip
Rename CMake option BUILD_SHARED_LIBS to protobuf_BUILD_SHARED_LIBS
Diffstat (limited to 'cmake/CMakeLists.txt')
-rw-r--r--cmake/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/cmake/CMakeLists.txt b/cmake/CMakeLists.txt
index 474bfd0f..0129401f 100644
--- a/cmake/CMakeLists.txt
+++ b/cmake/CMakeLists.txt
@@ -10,7 +10,7 @@ cmake_policy(SET CMP0022 NEW)
# Options
option(protobuf_VERBOSE "Enable for verbose output" OFF)
option(protobuf_BUILD_TESTS "Build tests" ON)
-option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
+option(protobuf_BUILD_SHARED_LIBS "Build Shared Libraries" OFF)
option(protobuf_MSVC_STATIC_RUNTIME "Link static runtime libraries" ON)
if (MSVC)
set(protobuf_WITH_ZLIB_DEFAULT OFF)
@@ -88,9 +88,9 @@ if (HAVE_ZLIB)
endif (HAVE_ZLIB)
if (MSVC)
- if (BUILD_SHARED_LIBS)
+ if (protobuf_BUILD_SHARED_LIBS)
add_definitions(-DPROTOBUF_USE_DLLS)
- else (BUILD_SHARED_LIBS)
+ else (protobuf_BUILD_SHARED_LIBS)
# In case we are building static libraries, link also the runtime library statically
# so that MSVCR*.DLL is not required at runtime.
# https://msdn.microsoft.com/en-us/library/2kzt1wy3.aspx
@@ -105,7 +105,7 @@ if (MSVC)
endif(${flag_var} MATCHES "/MD")
endforeach(flag_var)
endif (protobuf_MSVC_STATIC_RUNTIME)
- endif (BUILD_SHARED_LIBS)
+ endif (protobuf_BUILD_SHARED_LIBS)
add_definitions(/wd4244 /wd4267 /wd4018 /wd4355 /wd4800 /wd4251 /wd4996 /wd4146 /wd4305)
endif (MSVC)