Skip to content

Commit

Permalink
Removed the unsetting of ${libPortAudioCpp}
Browse files Browse the repository at this point in the history
I was trying to use your cmake-file for one of my projects, though it didn't find the cpp-library correctly. Took a quick peek in the file and found that the variable was unset quickly after it was set and just before it was used. This pull request corrects this.
  • Loading branch information
Rovanion committed Feb 10, 2015
1 parent e97c4bb commit 44ec8ec
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions CmakeIncludes/FindPortAudio.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,14 @@ find_path(PORTAUDIO_INCLUDE_DIR portaudio.h
)



# finally the library itself
# Finally the library itself.
find_library(libPortAudio NAMES portaudio)
find_library(libPortAudioCpp NAMES portaudiocpp)
set(libPortAudioCpp "")
set(PORTAUDIO_LIBRARIES ${libPortAudio} ${libPortAudioCpp})

# handle the QUIETLY and REQUIRED arguments and set PORTAUDIO_FOUND to TRUE if
# all listed variables are TRUE
# Handle the QUIETLY and REQUIRED arguments and set PORTAUDIO_FOUND to TRUE if
# all listed variables are TRUE.
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(PortAudio DEFAULT_MSG PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)

mark_as_advanced(PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)
mark_as_advanced(PORTAUDIO_LIBRARIES PORTAUDIO_INCLUDE_DIR)

0 comments on commit 44ec8ec

Please sign in to comment.