From 058108c6220c28f82a1c78481e8cf1b486d0b0aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Tue, 27 Jan 2015 23:16:16 +0100 Subject: [PATCH] Make BUILD_STATIC_PIC CMake option independent. Currently it was visible only if BUILD_STATIC was set, but it affects both BUILD_STATIC and BUILD_PLUGINS_STATIC. And because CMakeDependentOption doesn't support logic OR, I can't make it visible if either of these two is set, so I'm just making it visible all the time. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 6ceaeef31..b505d9280 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -110,7 +110,7 @@ if(BUILD_DEPRECATED) endif() option(BUILD_STATIC "Build static libraries (default are shared)" OFF) -cmake_dependent_option(BUILD_STATIC_PIC "Build static libraries and plugins with position-independent code" OFF "BUILD_STATIC" OFF) +option(BUILD_STATIC_PIC "Build static libraries and plugins with position-independent code" OFF) option(BUILD_PLUGINS_STATIC "Build static plugins (default are dynamic)" OFF) option(BUILD_TESTS "Build unit tests." OFF) cmake_dependent_option(BUILD_GL_TESTS "Build unit tests for OpenGL code." OFF "BUILD_TESTS" OFF)