--- src/CMakeLists.txt.orig	2012-06-16 04:22:35 UTC
+++ src/CMakeLists.txt
@@ -127,6 +127,13 @@ set (BuildOptionsDebug
 # 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 @@ if(OssEnable)
 	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()
