Browse Source

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.
pull/88/head
Vladimír Vondruš 11 years ago
parent
commit
058108c622
  1. 2
      CMakeLists.txt

2
CMakeLists.txt

@ -110,7 +110,7 @@ if(BUILD_DEPRECATED)
endif() endif()
option(BUILD_STATIC "Build static libraries (default are shared)" OFF) 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_PLUGINS_STATIC "Build static plugins (default are dynamic)" OFF)
option(BUILD_TESTS "Build unit tests." OFF) option(BUILD_TESTS "Build unit tests." OFF)
cmake_dependent_option(BUILD_GL_TESTS "Build unit tests for OpenGL code." OFF "BUILD_TESTS" OFF) cmake_dependent_option(BUILD_GL_TESTS "Build unit tests for OpenGL code." OFF "BUILD_TESTS" OFF)

Loading…
Cancel
Save