swh:1:snp:af87cd67498ef4fe47c76ed3e7caffe5b61facaf
Tip revision: 3b87b8461fd487ded962d338e04ff9721420918b authored by Axel Naumann on 09 February 2018, 07:16:05 UTC
Update ROOT version files to v6.12/06.
Update ROOT version files to v6.12/06.
Tip revision: 3b87b84
CMakeLists.txt
############################################################################
# CMakeLists.txt file for building ROOT rootx package
# @author Pere Mato, CERN
############################################################################
if(x11)
include_directories(${X11_INCLUDE_DIR})
# FIXME: Why are we adding the x11 independent rootx.cxx file?
ROOT_EXECUTABLE(root *.cxx ${CMAKE_SOURCE_DIR}/core/clib/src/strlcpy.c
LIBRARIES ${X11_LIBRARIES} ${X11_Xpm_LIB} ${X11_Xft_LIB} ${X11_Xext_LIB})
elseif(cocoa)
if (cxxmodules)
# FIXME: Disable modules for ObjC/ObjC++. It has problems when compiling
# rootxx-cocoa.mm with a lots of warnings and errors such as:
# rootxx-cocoa.mm:884:48: error: property 'length' not found on object of type 'NSMutableAttributedString *'
#
# FIXME: We should disable building with modules on only the TU of rootxx-cocoa.mm
# Unfortunately, cmake cannot reliably remove flags from a single TU.
# as COMPILE_OPTIONS and COMPILE_FLAGS could be overriden causing tricky to
# debug problems.
string(REPLACE "${ROOT_CXXMODULES_CXXFLAGS}" "" CMAKE_CXX_FLAGS ${CMAKE_CXX_FLAGS})
string(REPLACE "${ROOT_CXXMODULES_CFLAGS}" "" CMAKE_C_FLAGS ${CMAKE_C_FLAGS})
endif(cxxmodules)
# FIXME: rootxx-cocoa.mm should be compiled with -ObjC++ flag. Here we rely
# that the compiler will recognise the extension mm and switch to the correct
# language mode.
ROOT_EXECUTABLE(root rootx.cxx rootxx-cocoa.mm LIBRARIES "-framework Cocoa")
endif()