diff --git a/CMakeLists.txt b/CMakeLists.txt index 75175ad39..768d2185b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -307,11 +307,10 @@ else() message(STATUS "${CMAKE_CXX_COMPILER} does not support C++11, please use a different compiler") endif() -if(LIBCPP_FOUND AND APPLE) +if(("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang" OR APPLE) AND LIBCPP_FOUND) tomahawk_add_cxx_flags( "-stdlib=libc++" ) endif() - macro_optional_find_package(Echonest 2.3.0) macro_log_feature(ECHONEST_FOUND "Echonest" "Qt library for communicating with The Echo Nest" "http://projects.kde.org/libechonest" TRUE "" "libechonest 2.3.0 is needed for dynamic playlists and the infosystem")