Skip to content
Snippets Groups Projects
Commit 275e223b authored by Raphael Isemann's avatar Raphael Isemann Committed by Axel Naumann
Browse files

Adapt core/metacling CMake files to new structure

The top-level CMakeLists.txt in this packe now only calls down
to the src/ and test/ folder. This should now fully contain
the CMAKE_CXX_FLAGS in the src directory.
parent 89b3931a
No related branches found
No related tags found
No related merge requests found
############################################################################
# CMakeLists.txt file for building ROOT core/metacling package
############################################################################
add_subdirectory(src)
if(testing)
add_subdirectory(test)
endif()
############################################################################
# CMakeLists.txt file for building ROOT core/metacling package
############################################################################
# TInterpreter implementation for cling. Only in libCling; needs to resolve
# symbols from libCore.
ROOT_GLOB_SOURCES(sources ${CMAKE_CURRENT_SOURCE_DIR}/src/*.cxx)
ROOT_GLOB_SOURCES(sources ${CMAKE_CURRENT_SOURCE_DIR}/*.cxx)
include_directories(${LLVM_INCLUDE_DIRS} ${CLING_INCLUDE_DIRS})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/res
${CMAKE_CURRENT_SOURCE_DIR}/../clingutils/res
${CMAKE_CURRENT_SOURCE_DIR}/../foundation/res)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../res
${CMAKE_CURRENT_SOURCE_DIR}/../../clingutils/res
${CMAKE_CURRENT_SOURCE_DIR}/../../foundation/res)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${CLING_CXXFLAGS}")
if(MSVC)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/TClingCallbacks.cxx COMPILE_FLAGS -GR-)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/TClingCallbacks.cxx COMPILE_FLAGS -GR-)
else()
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/src/TClingCallbacks.cxx COMPILE_FLAGS -fno-rtti)
set_source_files_properties(${CMAKE_CURRENT_SOURCE_DIR}/TClingCallbacks.cxx COMPILE_FLAGS -fno-rtti)
endif()
# This to avoid warning coming from llvm/src/tools/clang/include/clang/Sema/Lookup.h:441
......@@ -47,7 +43,3 @@ target_link_libraries(Cling -Wl,-bind_at_load -Wl,-undefined -Wl,dynamic_lookup)
else()
target_link_libraries(Cling -Wl,--unresolved-symbols=ignore-in-object-files)
endif()
if(testing)
add_subdirectory(test)
endif()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment