aboutsummaryrefslogtreecommitdiff
path: root/games/odamex/use_bundled_portmidi.diff
blob: 2fffcc2737b35e196b5aaab28b816e6636fcd813 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff -Naur odamex-src-0.9.5/client/CMakeLists.txt odamex-src-0.9.5.patched/client/CMakeLists.txt
--- odamex-src-0.9.5/client/CMakeLists.txt	2021-09-08 23:18:23.000000000 -0400
+++ odamex-src-0.9.5.patched/client/CMakeLists.txt	2022-01-01 14:36:43.305448361 -0500
@@ -65,8 +65,6 @@
 
 # PortMidi
 if(ENABLE_PORTMIDI)
-  find_package(PortMidi)
-  if(NOT PORTMIDI_FOUND)
     # build the PortMidi library
     set(PORTMIDI_LIBRARY "portmidi")
     set(PORTMIDI_LIBRARIES ${PORTMIDI_LIBRARY})
@@ -107,7 +105,6 @@
     add_library(${PORTMIDI_LIBRARY} STATIC ${PORTMIDI_SOURCES} ${PORTMIDI_HEADERS})
     target_link_libraries(${PORTMIDI_LIBRARY} ${PM_NEEDED_LIBS})
     message(STATUS "portmidi will be built and staticaly linked when compiling the client application.")
-  endif()
 
   add_definitions(-DPORTMIDI)
   include_directories(${PORTMIDI_INCLUDE_DIR})