Skip to content

Commit fe7c785

Browse files
authored
[nfc] try fix dict generation
1 parent 91dbbf3 commit fe7c785

File tree

4 files changed

+9
-7
lines changed

4 files changed

+9
-7
lines changed

tree/tree/test/CMakeLists.txt

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,17 @@
66

77

88
ROOT_GENERATE_DICTIONARY(ElementStructDict ElementStruct.h LINKDEF ElementStructLinkDef.h OPTIONS -inlineInputHeader)
9-
ROOT_GENERATE_DICTIONARY(TestRefObjDict TestRefObj.h LINKDEF TestRefObjLinkDef.h OPTIONS -inlineInputHeader)
109
ROOT_ADD_GTEST(testTOffsetGeneration TOffsetGeneration.cxx ElementStruct.cxx ElementStructDict.cxx
1110
LIBRARIES RIO Tree MathCore
1211
)
13-
ROOT_ADD_GTEST(testClonesArray testClonesArray.cxx TestRefObj.cxx TestRefObjDict.cxx LIBRARIES RIO Tree)
1412
if(MSVC AND NOT CMAKE_GENERATOR MATCHES Ninja)
1513
add_custom_command(TARGET testTOffsetGeneration POST_BUILD
1614
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libElementStructDict_rdict.pcm
1715
${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/libElementStructDict_rdict.pcm)
18-
add_custom_command(TARGET testClonesArray POST_BUILD
19-
COMMAND ${CMAKE_COMMAND} -E copy ${CMAKE_CURRENT_BINARY_DIR}/libTestRefObjDict_rdict.pcm
20-
${CMAKE_CURRENT_BINARY_DIR}/$<CONFIG>/libTestRefObjDict_rdict.pcm)
2116
endif()
2217
target_include_directories(testTOffsetGeneration PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
2318
ROOT_STANDARD_LIBRARY_PACKAGE(SillyStruct NO_INSTALL_HEADERS HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/SillyStruct.h SOURCES SillyStruct.cxx LINKDEF SillyStructLinkDef.h DEPENDENCIES RIO)
19+
ROOT_STANDARD_LIBRARY_PACKAGE(TestRefObj NO_INSTALL_HEADERS HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/TestRefObj.h SOURCES TestRefObj.cxx LINKDEF TestRefObjLinkDef.h DEPENDENCIES RIO)
2420
ROOT_ADD_GTEST(testBulkApi BulkApi.cxx LIBRARIES RIO Tree TreePlayer)
2521
#FIXME: tests are having timeout on 32bit CERN VM (in docker container everything is fine),
2622
# to be reverted after investigation.
@@ -31,6 +27,7 @@ if(NOT CMAKE_SIZEOF_VOID_P EQUAL 4)
3127
endif()
3228
ROOT_ADD_GTEST(testTBasket TBasket.cxx LIBRARIES RIO Tree)
3329
ROOT_ADD_GTEST(testTBranch TBranch.cxx LIBRARIES RIO Tree MathCore)
30+
ROOT_ADD_GTEST(testClonesArray testClonesArray.cxx LIBRARIES RIO Tree TestRefObj)
3431
ROOT_ADD_GTEST(testTIOFeatures TIOFeatures.cxx LIBRARIES RIO Tree)
3532
ROOT_ADD_GTEST(testTTreeCluster TTreeClusterTest.cxx LIBRARIES RIO Tree MathCore)
3633
ROOT_ADD_GTEST(testTChainParsing TChainParsing.cxx LIBRARIES RIO Tree)

tree/tree/test/SillyStruct.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#include "SillyStruct.h"
22

3-
ClassImp(SillyStruct)
3+
// ClassImp(SillyStruct)

tree/tree/test/SillyStruct.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#ifndef SILLYSTRUCT_H
2+
#define SILLYSTRUCT_H
3+
14
#include "Rtypes.h"
25
#include "TObject.h"
36

@@ -15,3 +18,5 @@ class SillyStruct : public TObject {
1518

1619
ClassDefOverride(SillyStruct, 1)
1720
};
21+
22+
#endif

tree/tree/test/TestRefObj.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
class TestRefObj : public TObject {
99
protected:
1010
TRefArray lChildren;
11-
11+
1212
public:
1313
TestRefObj() : lChildren() {}
1414
virtual ~TestRefObj() {}

0 commit comments

Comments
 (0)