Skip to content
Snippets Groups Projects
Commit 40fd9f40 authored by Pere Mato Vila's avatar Pere Mato Vila
Browse files

Removing some more warnings (CMake)

parent ab5ed342
No related branches found
No related tags found
No related merge requests found
......@@ -144,8 +144,8 @@ ROOT_BUILD_OPTION(pythia6 ON "Pythia6 EG support, requires libPythia6")
ROOT_BUILD_OPTION(pythia6_nolink OFF "Delayed linking of Pythia6 library")
ROOT_BUILD_OPTION(pythia8 ON "Pythia8 EG support, requires libPythia8")
ROOT_BUILD_OPTION(python ON "Python ROOT bindings, requires python >= 2.2")
ROOT_BUILD_OPTION(qt OFF "Qt graphics backend, requires libqt >= 4.x")
ROOT_BUILD_OPTION(qtgsi OFF "GSI's Qt integration, requires libqt >= 3")
ROOT_BUILD_OPTION(qt OFF "Qt graphics backend, requires libqt >= 4.8")
ROOT_BUILD_OPTION(qtgsi OFF "GSI's Qt integration, requires libqt >= 4.8")
ROOT_BUILD_OPTION(reflex ON "Build the libReflex dictionary library")
ROOT_BUILD_OPTION(roofit OFF "Build the libRooFit advanced fitting package")
ROOT_BUILD_OPTION(ruby OFF "Ruby ROOT bindings, requires ruby >= 1.8")
......
......@@ -10,6 +10,11 @@ set(headers TGQt.h TQtTimer.h TQtApplication.h TQtBrush.h
TQMimeTypes.h TQtClientFilter.h TQtClientWidget.h TQtWidget.h
TQtMarker.h TQtTimer.h TQtRootSlot.h TQtPadFont.h)
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-Wno-deprecated-register -Wno-uninitialized)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
add_definitions(-Wno-deprecated -Wno-uninitialized)
endif()
QT4_WRAP_CPP(mocfiles inc/TQtWidget.h inc/TQtEmitter.h inc/TQtClientFilter.h
inc/TQtClientGuard.h inc/TQtClientWidget.h inc/TQtTimer.h
......
......@@ -9,6 +9,12 @@ include(${QT_USE_FILE})
add_definitions(-DQT3_SUPPORT -DQT_DLL -DQT_THREAD_SUPPORT )
include_directories(${QT_QT3SUPPORT_INCLUDE_DIR})
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-Wno-deprecated-register -Wno-uninitialized)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
add_definitions(-Wno-deprecated -Wno-uninitialized)
endif()
QT4_WRAP_CPP(mocfiles inc/TQCanvasMenu.h inc/TQRootApplication.h
inc/TQRootCanvas.h inc/TQRootDialog.h)
......
......@@ -8,6 +8,12 @@ ROOT_USE_PACKAGE(graf2d/qt)
include(${QT_USE_FILE})
if(CMAKE_COMPILER_IS_GNUCXX)
add_definitions(-Wno-deprecated-register -Wno-uninitialized)
elseif(CMAKE_CXX_COMPILER_ID STREQUAL Clang)
add_definitions(-Wno-deprecated -Wno-uninitialized)
endif()
ROOT_GENERATE_DICTIONARY(G__QtRoot *.h MODULE QtRoot LINKDEF LinkDef.h)
ROOT_LINKER_LIBRARY(QtRoot *.cxx G__QtRoot.cxx LIBRARIES Core DEPENDENCIES Gui GQt)
......
......@@ -19,6 +19,10 @@ list(REMOVE_ITEM sources ${CMAKE_CURRENT_SOURCE_DIR}/src/DaemonUtils.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/AFSAuth.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/TAFS.cxx)
if(MACOSX_SSK_DEPRECATED)
add_definitions(-Wno-deprecated-declarations)
endif()
#---static library needed for rootd and proofd --------------------------------------------
add_library(rsa STATIC ${CMAKE_CURRENT_SOURCE_DIR}/src/rsaaux.cxx
${CMAKE_CURRENT_SOURCE_DIR}/src/rsalib.cxx
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment