Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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