media-libs/jasper: use set() instead of option() in CMakeLists.txt
authorDavid Seifert <soap@gentoo.org>
Sun, 27 Nov 2016 11:15:25 +0000 (12:15 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 27 Nov 2016 11:16:38 +0000 (12:16 +0100)
* option() should only be used for boolean arguments
  https://cmake.org/cmake/help/latest/command/option.html?highlight=option

Package-Manager: portage-2.3.2

media-libs/jasper/files/jasper-2.0.0-fix-build-system.patch

index bae54760f470a2441f0275170163a8ad67342bc8..f95023be106df30b8a8b3a552b054f773e127708 100644 (file)
@@ -8,7 +8,7 @@
  option(JAS_ENABLE_OPENGL "Enable use of OpenGL Library" true)
  option(JAS_ENABLE_STRICT "Enable pedantic error checking" false)
  option(JAS_ENABLE_SHARED "Enable building of shared library" true)
-+option(CMAKE_INSTALL_LIBDIR "Path to install libraries into" lib)
++set(CMAKE_INSTALL_LIBDIR lib CACHE PATH "Path to install libraries into")
  
  if (APPLE AND ${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
        set(MACOSX true)