~dbusmenu-team/libdbusmenu-qt/trunk

« back to all changes in this revision

Viewing changes to src/CMakeLists.txt

  • Committer: CI bot
  • Author(s): Aurélien Gâteau
  • Date: 2014-06-19 09:06:58 UTC
  • mfrom: (264.1.1 build-with-clang)
  • Revision ID: ps-jenkins@lists.canonical.com-20140619090658-yasi2wjm5gozx7s0
Fix build with Clang 

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
18
18
endif (__DBUSMENU_HAVE_W_ALL)
19
19
 
 
20
check_cxx_compiler_flag(-std=c++11 __DBUSMENU_HAVE_CXX11)
 
21
if (__DBUSMENU_HAVE_CXX11)
 
22
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
 
23
endif (__DBUSMENU_HAVE_CXX11)
 
24
 
20
25
# Check whether QIcon::name() exists. It was added in late Qt 4.7 cycle, and is
21
26
# not present in betas.
22
27
set(CMAKE_REQUIRED_INCLUDES "${QT_INCLUDE_DIR}")