aboutsummaryrefslogtreecommitdiff
path: root/audio/zynaddsubfx/files/patch-src__CMakeLists.txt
blob: 056d11c4be534016c0dded249a1961c4a60d7068 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
--- src/CMakeLists.txt.orig	2014-10-16 15:33:19.000000000 +0200
+++ src/CMakeLists.txt	2014-10-16 15:33:53.000000000 +0200
@@ -127,6 +127,13 @@
 # From here on, the setting variables have  been prepared so concentrate
 # on the actual compiling.
 
+if(PaEnable)
+	include_directories(${PORTAUDIO_INCLUDE_DIRS})
+	add_definitions(-DPORTAUDIO=1)
+	list(APPEND AUDIO_LIBRARIES ${PORTAUDIO_LIBRARIES})
+	list(APPEND AUDIO_LIBRARY_DIRS ${PORTAUDIO_LIBRARY_DIRS})
+endif()
+
 if(AlsaEnable)
 	list(APPEND AUDIO_LIBRARIES ${ASOUND_LIBRARY})
 	list(APPEND AUDIO_LIBRARY_DIRS ${ASOUND_LIBRARY_DIRS})
@@ -143,13 +150,6 @@
 	add_definitions(-DOSS=1)
 endif(OssEnable)
 
-if(PaEnable)
-	include_directories(${PORTAUDIO_INCLUDE_DIR})
-	add_definitions(-DPORTAUDIO=1)
-	list(APPEND AUDIO_LIBRARIES ${PORTAUDIO_LIBRARIES})
-	list(APPEND AUDIO_LIBRARY_DIRS ${PORTAUDIO_LIBRARY_DIRS})
-endif()
-
 if (CompileTests)
 	ENABLE_TESTING()
 endif()