patch-cmake_Unix_cmake 476 B

123456789101112131415
  1. $OpenBSD: patch-cmake_Unix_cmake,v 1.3 2017/03/25 08:39:51 landry Exp $
  2. - Avoid forced linkage with libstdc++.
  3. --- cmake/Unix.cmake.orig Thu Mar 23 16:18:04 2017
  4. +++ cmake/Unix.cmake Fri Mar 24 07:19:31 2017
  5. @@ -66,6 +66,7 @@ if(ENABLE_RAW)
  6. if(NOT LIBRAW_FOUND)
  7. message(FATAL_ERROR "libraw not found. It's mandatory when used with ENABLE_RAW enabled")
  8. else()
  9. + list(REMOVE_ITEM LIBRAW_LIBRARIES stdc++)
  10. add_definitions(-DWITH_LIBRAW)
  11. endif()
  12. endif(ENABLE_RAW)