Created
February 1, 2011 00:49
-
-
Save sampsyo/805186 to your computer and use it in GitHub Desktop.
Fixes compilation of Last.fm fingerprinter under Mac OS X with libraries installed by MacPorts (correctly specifying the libraries that need to be linked).
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -r 6a862c34b61f fplib/CMakeLists.txt | |
--- a/fplib/CMakeLists.txt Mon Jul 12 18:14:59 2010 +0100 | |
+++ b/fplib/CMakeLists.txt Mon Jan 31 16:49:31 2011 -0800 | |
@@ -19,6 +19,7 @@ | |
IF(APPLE) | |
INCLUDE_DIRECTORIES(/opt/local/include/) | |
+LINK_DIRECTORIES(${LINK_DIRECTORIES} /opt/local/lib/) | |
ENDIF(APPLE) | |
SET( LASTFM_FP_SOURCES | |
@@ -30,6 +31,9 @@ | |
ADD_LIBRARY(lastfmfp_static STATIC ${LASTFM_FP_SOURCES}) | |
ADD_LIBRARY(lastfmfp_shared SHARED ${LASTFM_FP_SOURCES}) | |
+TARGET_LINK_LIBRARIES( lastfmfp_static fftw3f samplerate ) | |
+TARGET_LINK_LIBRARIES( lastfmfp_shared fftw3f samplerate ) | |
+ | |
SET_TARGET_PROPERTIES( lastfmfp_static PROPERTIES OUTPUT_NAME lastfmfp_static) | |
SET_TARGET_PROPERTIES( lastfmfp_shared PROPERTIES OUTPUT_NAME lastfmfp) | |
SET_TARGET_PROPERTIES( lastfmfp_shared PROPERTIES VERSION ${LASTFM_FP_MAJOR}.${LASTFM_FP_MINOR}.${LASTFM_FP_PATCH} SOVERSION ${LASTFM_FP_MAJOR}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment