From ccd04fc54b01489a0907ee8b40e53fe7cabdd035 Mon Sep 17 00:00:00 2001 From: Florian Uhlig Date: Thu, 7 May 2015 14:29:58 +0200 Subject: [PATCH] Change code to be able to use ROOT6 Use correct dependencies for ROOT5 and ROOT6 Changes to create rootmap files also for ROOT6. Add the std namespace to all occurrences of any stream class. Probably some using directive in the header files of ROOT6 is not present any longer. Create the pcm files correctly and copy them into the lib directory. Install the pcm files correctly in CMAKE_INSTALL_PREFIX. Add default parameters for Run function. Otherwise macros will crash with ROOT6 when no parameters are defined when calling Run function. Cling is here more strict then Cint. Replace the occurrence of '//' by '/' in pathes which are defined via environment variables. Otherwise macros will crash when used with ROOT6. Cling is more strict then Cint. Correctly cast variables. This is needed when macros are executed with ROOT6. Cling is more strict then Cint. Correctly initialize the TObjString in macros. Define include directories which don't belong to our project as SYSTEM include directories. For these directories no warnings will be created. Automatic loading of the libraries with ROOT6 on Apple search for libraries with extension dylib. Older versions of ROOT expect the extension so. Depending on the ROOT version the correct extension is choosen. Install also rootmap files to final library destination. --- fairmq/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fairmq/CMakeLists.txt b/fairmq/CMakeLists.txt index 658d935b..a8524124 100644 --- a/fairmq/CMakeLists.txt +++ b/fairmq/CMakeLists.txt @@ -8,7 +8,6 @@ Set(INCLUDE_DIRECTORIES ${CMAKE_SOURCE_DIR}/fairmq ${CMAKE_SOURCE_DIR}/fairmq/devices - ${CMAKE_SOURCE_DIR}/fairmq/examples/req-rep ${CMAKE_SOURCE_DIR}/fairmq/tools ) @@ -19,6 +18,7 @@ Set(SYSTEM_INCLUDE_DIRECTORIES If(PROTOBUF_FOUND) Set(INCLUDE_DIRECTORIES ${INCLUDE_DIRECTORIES} + ${CMAKE_SOURCE_DIR}/fairmq/examples/req-rep # # following directory is only for protobuf tests and is not essential part of FairMQ #${CMAKE_SOURCE_DIR}/fairmq/prototest )