From 04492b28bdb752cba2f91edd32da348ecf0b3951 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 12 Feb 2013 11:44:48 -0800 Subject: [PATCH] link portaudio required libraries after portaudio --- interface/CMakeLists.txt | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 001ed2db8e..efccdd9a70 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -45,6 +45,13 @@ ExternalProject_Add( BUILD_COMMAND make ) +ExternalProject_Get_Property(portaudio binary_dir) +ExternalProject_Get_Property(portaudio source_dir) +include_directories(${source_dir}/include) +add_dependencies(interface portaudio) + +target_link_libraries(interface ${binary_dir}/lib/.libs/libportaudio.a) + if (UNIX AND NOT APPLE) find_package(Threads REQUIRED) find_package(Librt REQUIRED) @@ -57,11 +64,4 @@ if (UNIX AND NOT APPLE) ${JACK_LIBRARIES} ${ALSA_LIBRARIES} ) -endif (UNIX AND NOT APPLE) - -ExternalProject_Get_Property(portaudio binary_dir) -ExternalProject_Get_Property(portaudio source_dir) -include_directories(${source_dir}/include) -add_dependencies(interface portaudio) - -target_link_libraries(interface ${binary_dir}/lib/.libs/libportaudio.a) \ No newline at end of file +endif (UNIX AND NOT APPLE) \ No newline at end of file