From ba1bda65d0680c8c5f050d7433d1d4e8b3028a6c Mon Sep 17 00:00:00 2001 From: Markus Frank <Markus.Frank@cern.ch> Date: Mon, 11 Jul 2022 14:24:23 +0200 Subject: [PATCH] Try to fix MAC link error --- DDTest/CMakeLists.txt | 3 ++- DDTest/src/test_cellDimensions.cc | 4 ++-- DDTest/src/test_segmentationHandles.cc | 4 +++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/DDTest/CMakeLists.txt b/DDTest/CMakeLists.txt index bd3d7e2d2..f46ed49e8 100644 --- a/DDTest/CMakeLists.txt +++ b/DDTest/CMakeLists.txt @@ -15,8 +15,9 @@ add_library(DD4hep::DDTest ALIAS DDTest) dd4hep_use_python_executable() target_include_directories(DDTest INTERFACE include) +## test_example + foreach(TEST_NAME - test_example test_bitfield64 test_bitfieldcoder test_DetType diff --git a/DDTest/src/test_cellDimensions.cc b/DDTest/src/test_cellDimensions.cc index d678ed8f1..8dd8d93df 100644 --- a/DDTest/src/test_cellDimensions.cc +++ b/DDTest/src/test_cellDimensions.cc @@ -13,10 +13,10 @@ #include <cmath> -static dd4hep::DDTest test( "CellDimensions" ) ; +int main() { + dd4hep::DDTest test( "CellDimensions" ) ; -int main() { try{ dd4hep::DDSegmentation::CartesianGridXY seg("system:8,barrel:3,layer:8,slice:5,x:16,y:16"); diff --git a/DDTest/src/test_segmentationHandles.cc b/DDTest/src/test_segmentationHandles.cc index 5c0427487..22ebf19f0 100644 --- a/DDTest/src/test_segmentationHandles.cc +++ b/DDTest/src/test_segmentationHandles.cc @@ -13,12 +13,14 @@ #include <cmath> -static dd4hep::DDTest test( "CellDimensions" ) ; using namespace dd4hep; using namespace dd4hep::detail; //using dd4hep::DDSegmentation::BitFieldCoder; int main() { + + dd4hep::DDTest test( "CellDimensions" ); + try{ BitFieldCoder bf("system:8,barrel:3,layer:8,slice:5,x:16,y:16"); Segmentation base("CartesianGridXY","Test",&bf); -- GitLab