Skip to content
Snippets Groups Projects
Commit cc7dd991 authored by Paul Seyfert's avatar Paul Seyfert Committed by Guilherme Amadio
Browse files

[TMVA] Configure tutorials/tmva/makefile (#2547)

[TMVA] Configure tutorials/tmva/makefile

Example makefile from tutorials/tmva should use the same c++ standard as
ROOT (otherwise one faces errors from string views in the root headers
when building the tutorials).
parent 89c3d93e
No related branches found
No related tags found
No related merge requests found
...@@ -148,7 +148,7 @@ set(artifact_files_builddir) ...@@ -148,7 +148,7 @@ set(artifact_files_builddir)
foreach(artifact_file ${artifact_files}) foreach(artifact_file ${artifact_files})
# Filter out hsimple.root; someone might have created it in the src dir, and the hsimple.root # Filter out hsimple.root; someone might have created it in the src dir, and the hsimple.root
# target below will interfere. # target below will interfere.
if (NOT (tutorial_file STREQUAL "tutorials/hsimple.root")) if (NOT (artifact_file STREQUAL "tutorials/hsimple.root"))
add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${artifact_file} add_custom_command(OUTPUT ${CMAKE_BINARY_DIR}/${artifact_file}
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/${artifact_file} ${CMAKE_BINARY_DIR}/${artifact_file} COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_SOURCE_DIR}/${artifact_file} ${CMAKE_BINARY_DIR}/${artifact_file}
COMMENT "Copying ${CMAKE_SOURCE_DIR}/${artifact_file}" COMMENT "Copying ${CMAKE_SOURCE_DIR}/${artifact_file}"
......
...@@ -16,21 +16,20 @@ BINS = TMVAClassification \ ...@@ -16,21 +16,20 @@ BINS = TMVAClassification \
CXX = g++ CXX = g++
CCFLAGS = -O0 -ggdb -std=c++11 CCFLAGS = $(shell root-config --cflags) -ggdb
LD = g++ LD = g++
LDFLAGS = LDFLAGS =
LIBS = $(shell root-config --libdir) LIBS = $(shell root-config --libs) -lMLP -lMinuit -lTreePlayer -lTMVA -lTMVAGui -lXMLIO -lMLP -lm
INCS = $(shell root-config --incdir)
default : $(BINS) default : $(BINS)
$(BINS): % : %.C $(BINS): % : %.C
@echo -n "Building $@ ... " @echo -n "Building $@ ... "
$(CXX) $(CCFLAGS) $< $(addprefix -I, $(INCS)) $(shell root-config --libs) -lMLP -lMinuit -lTreePlayer -lTMVA -lTMVAGui -lXMLIO -lMLP -lm -g -o $@ $(CXX) $(CCFLAGS) $< $(LIBS) -o $@
@echo "Done" @echo "Done"
......
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