How to suppress warnings? (I guess your coding does not follow C++11. Could you please insert a couple of 'override's in the future editions?)

QCustomPlot/include/qcustomplot.h:6007:15: warning: 
      'findEnd' overrides a member function but is not marked 'override'
      [-Winconsistent-missing-override]
  virtual int findEnd(double sortKey, bool expandedRange=true) const;
              ^
../QCustomPlot/include/qcustomplot.h:3830:15: note: 
      overridden virtual function is here
  virtual int findEnd(double sortKey, bool expandedRange=true) const = 0;

On my OSX, I receive error like

[  4%] Building CXX object QCustomPlot/CMakeFiles/libQCustomPlot.dir/libQCustomPlot_automoc.cpp.o
[  5%] Linking CXX shared library libQCustomPlot.dylib
Undefined symbols for architecture x86_64:
  "qt_assert_x(char const*, char const*, char const*, int)", referenced from:
      QList<QCPDataRange>::at(int) const in qcustomplot.cpp.o
      QList<QCPDataRange>::operator[](int) in qcustomplot.cpp.o

Here goes the build file which produced it:

set(CMAKE_AUTOMOC ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
find_package(Qt5 COMPONENTS Core Widgets PrintSupport REQUIRED)

include_directories(
      ${Qt5Widgets_INCLUDE_DIRS}
      ${Qt5Printer_INCLUDE_DIRS}
      include
      )

add_definitions(${Qt5Widgets_DEFINITIONS} ${Qt5Printer_DEFINITIONS})

QT5_WRAP_CPP(qcustomplot_moc include/qcustomplot.h)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${Qt5Widgets_EXECUTABLE_COMPILE_FLAGS}  -std=c++11 -Wall")

ADD_LIBRARY(libQCustomPlot
    qcustomplot.cpp
    ${qcustomplot_moc} # The MOC headers, generated
)

set_target_properties(libQCustomPlot
                      PROPERTIES OUTPUT_NAME QCustomPlot
                      )
target_include_directories(libQCustomPlot PUBLIC
  $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
)

Could you please find out what could be the problem? (on Ubuntu, it compiles and links fine)