patch-mpcenc_CMakeLists_txt 897 B

12345678910111213141516171819202122232425
  1. $OpenBSD: patch-mpcenc_CMakeLists_txt,v 1.2 2013/06/23 14:30:52 dcoppa Exp $
  2. --- mpcenc/CMakeLists.txt.orig Tue Jul 13 11:30:09 2010
  3. +++ mpcenc/CMakeLists.txt Sun Jun 23 15:33:36 2013
  4. @@ -11,8 +11,8 @@ link_directories(${libmpc_BINARY_DIR}/libmpcenc)
  5. add_executable(mpcenc keyboard.c mpcenc.c pipeopen.c stderr.c ${libmpc_SOURCE_DIR}/common/tags.c wave_in.c winmsg.c)
  6. -target_link_libraries(mpcenc mpcpsy_static)
  7. -target_link_libraries(mpcenc mpcenc_static)
  8. +target_link_libraries(mpcenc mpcpsy_static mpcenc_static)
  9. +add_dependencies(mpcenc mpcpsy_static mpcenc_static)
  10. if(WIN32)
  11. target_link_libraries(mpcenc winmm)
  12. @@ -21,9 +21,5 @@ endif(WIN32)
  13. if(NOT MSVC)
  14. target_link_libraries(mpcenc m)
  15. endif(NOT MSVC)
  16. -
  17. -if(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
  18. -target_link_libraries(mpcenc ossaudio)
  19. -endif(CMAKE_SYSTEM_NAME STREQUAL OpenBSD)
  20. install(TARGETS mpcenc RUNTIME DESTINATION bin)