Skip to content

Instantly share code, notes, and snippets.

@dschmidt
Forked from eartle/gist:2604822
Created May 6, 2012 01:34
Show Gist options
  • Save dschmidt/2606900 to your computer and use it in GitHub Desktop.
Save dschmidt/2606900 to your computer and use it in GitHub Desktop.
liblastfm cmake build fixes for mac
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8394be3..0805c4c 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -24,7 +24,7 @@ set(CMAKE_AUTOMOC TRUE)
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions("-fno-operator-names -fvisibility-inlines-hidden -fvisibility=hidden")
endif()
-set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-undefined")
+#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wl,--no-undefined")
# main library
add_subdirectory(src)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b3592eb..aee64a6 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -61,7 +61,8 @@ if(APPLE)
#set(CMAKE_OSX_SYSROOT "/Developer/SDKs/MacOSX${CMAKE_OSX_DEPLOYMENT_TARGET}.sdk")
list(APPEND liblastfm_SOURCES
- src/mac/MNetworkConnectionMonitor_mac.cpp
+ mac/MNetworkConnectionMonitor_mac.cpp
+ mac/MNetworkConnectionMonitor.h
)
find_library(SYSTEMCONFIGURATION_LIBRARY SystemConfiguration)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment