mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2025-10-13 16:46:47 +00:00
Get rid of warnings which come from include files which doesn't belong to FairRoot. These are for example Boost or ROOT includes. Define in all CMakeLists.txt files such libraries as system libraries. In this case the compiler will not produce any warning. This change reduces the nightly test time on some machines from more then hour to 1 minute. The reason for this long compile time was the enormous amount of warnings produced before. The output of the warnings sum up to roughly 850 MB.
This commit is contained in:
parent
65d91b8681
commit
a8854d36ac
|
@ -5,43 +5,56 @@
|
||||||
# GNU Lesser General Public Licence version 3 (LGPL) version 3, #
|
# GNU Lesser General Public Licence version 3 (LGPL) version 3, #
|
||||||
# copied verbatim in the file "LICENSE" #
|
# copied verbatim in the file "LICENSE" #
|
||||||
################################################################################
|
################################################################################
|
||||||
set(INCLUDE_DIRECTORIES
|
Set(INCLUDE_DIRECTORIES
|
||||||
${CMAKE_SOURCE_DIR}/fairmq
|
${CMAKE_SOURCE_DIR}/fairmq
|
||||||
${CMAKE_SOURCE_DIR}/fairmq/devices
|
${CMAKE_SOURCE_DIR}/fairmq/devices
|
||||||
|
)
|
||||||
|
|
||||||
|
Set(SYSTEM_INCLUDE_DIRECTORIES
|
||||||
${Boost_INCLUDE_DIR}
|
${Boost_INCLUDE_DIR}
|
||||||
)
|
)
|
||||||
|
|
||||||
if(PROTOBUF_FOUND)
|
If(PROTOBUF_FOUND)
|
||||||
set(INCLUDE_DIRECTORIES
|
Set(INCLUDE_DIRECTORIES
|
||||||
${INCLUDE_DIRECTORIES}
|
${INCLUDE_DIRECTORIES}
|
||||||
${PROTOBUF_INCLUDE_DIR}
|
|
||||||
${CMAKE_SOURCE_DIR}/fairmq/examples/req-rep
|
${CMAKE_SOURCE_DIR}/fairmq/examples/req-rep
|
||||||
# # following directory is only for protobuf tests and is not essential part of FairMQ
|
# # following directory is only for protobuf tests and is not essential part of FairMQ
|
||||||
#${CMAKE_SOURCE_DIR}/fairmq/prototest
|
#${CMAKE_SOURCE_DIR}/fairmq/prototest
|
||||||
)
|
)
|
||||||
endif(PROTOBUF_FOUND)
|
Set(SYSTEM_INCLUDE_DIRECTORIES
|
||||||
|
${SYSTEM_INCLUDE_DIRECTORIES}
|
||||||
|
${PROTOBUF_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
EndIf(PROTOBUF_FOUND)
|
||||||
|
|
||||||
if(NANOMSG_FOUND)
|
If(NANOMSG_FOUND)
|
||||||
set(INCLUDE_DIRECTORIES
|
Set(INCLUDE_DIRECTORIES
|
||||||
${INCLUDE_DIRECTORIES}
|
${INCLUDE_DIRECTORIES}
|
||||||
${NANOMSG_LIBRARY_SHARED}
|
|
||||||
${CMAKE_SOURCE_DIR}/fairmq/nanomsg
|
${CMAKE_SOURCE_DIR}/fairmq/nanomsg
|
||||||
)
|
)
|
||||||
else(NANOMSG_FOUND)
|
Set(SYSTEM_INCLUDE_DIRECTORIES
|
||||||
set(INCLUDE_DIRECTORIES
|
${SYSTEM_INCLUDE_DIRECTORIES}
|
||||||
|
${NANOMSG_LIBRARY_SHARED}
|
||||||
|
)
|
||||||
|
Else(NANOMSG_FOUND)
|
||||||
|
Set(INCLUDE_DIRECTORIES
|
||||||
${INCLUDE_DIRECTORIES}
|
${INCLUDE_DIRECTORIES}
|
||||||
${ZMQ_INCLUDE_DIR}
|
|
||||||
${CMAKE_SOURCE_DIR}/fairmq/zeromq
|
${CMAKE_SOURCE_DIR}/fairmq/zeromq
|
||||||
)
|
)
|
||||||
endif(NANOMSG_FOUND)
|
Set(SYSTEM_INCLUDE_DIRECTORIES
|
||||||
|
${SYSTEM_INCLUDE_DIRECTORIES}
|
||||||
|
${ZMQ_INCLUDE_DIR}
|
||||||
|
)
|
||||||
|
EndIf(NANOMSG_FOUND)
|
||||||
|
|
||||||
include_directories(${INCLUDE_DIRECTORIES})
|
Include_Directories(${INCLUDE_DIRECTORIES})
|
||||||
|
Include_Directories(SYSTEM ${SYSTEM_INCLUDE_DIRECTORIES})
|
||||||
|
|
||||||
set(LINK_DIRECTORIES
|
Set(LINK_DIRECTORIES
|
||||||
${Boost_LIBRARY_DIRS}
|
${Boost_LIBRARY_DIRS}
|
||||||
)
|
)
|
||||||
|
|
||||||
link_directories(${LINK_DIRECTORIES})
|
Link_Directories(${LINK_DIRECTORIES})
|
||||||
|
|
||||||
set(SRCS
|
set(SRCS
|
||||||
"FairMQLogger.cxx"
|
"FairMQLogger.cxx"
|
||||||
|
|
Loading…
Reference in New Issue
Block a user