From ca3b807ec8e0afea406a42cc1a25fce117f05021 Mon Sep 17 00:00:00 2001
From: Florian Uhlig <f.uhlig@gsi.de>
Date: Thu, 17 Sep 2020 09:00:40 +0200
Subject: [PATCH] Remove unnecessary distinction between Apple and Linux

CMake knows the library extension for the different systems so there is no need to
define it explicitly.
---
 analysis/PWGC2F/flow/DataTreeCbmInterface/CMakeLists.txt | 6 +-----
 analysis/common/analysis_tree_converter/CMakeLists.txt   | 6 +-----
 analysis/common/at_kfpf_interface/CMakeLists.txt         | 6 +-----
 3 files changed, 3 insertions(+), 15 deletions(-)

diff --git a/analysis/PWGC2F/flow/DataTreeCbmInterface/CMakeLists.txt b/analysis/PWGC2F/flow/DataTreeCbmInterface/CMakeLists.txt
index 3cc8dc3a39..100acf5226 100644
--- a/analysis/PWGC2F/flow/DataTreeCbmInterface/CMakeLists.txt
+++ b/analysis/PWGC2F/flow/DataTreeCbmInterface/CMakeLists.txt
@@ -67,11 +67,7 @@ ENDIF (SSE_FOUND)
 Set(LINKDEF DataTreeCbmInterfaceLinkDef.h)
 Set(LIBRARY_NAME DataTreeCbmInterface)
 
-If(UNIX AND NOT APPLE)
-  Set(_DataTree_LIB  DataTree.so)
-  Else()
-  Set(_DataTree_LIB  DataTree.dylib)
-EndIf()
+Set(_DataTree_LIB  DataTree)
 
 Set(DEPENDENCIES 
 	${_DataTree_LIB} 
diff --git a/analysis/common/analysis_tree_converter/CMakeLists.txt b/analysis/common/analysis_tree_converter/CMakeLists.txt
index 843775eda6..6804d422b5 100644
--- a/analysis/common/analysis_tree_converter/CMakeLists.txt
+++ b/analysis/common/analysis_tree_converter/CMakeLists.txt
@@ -69,11 +69,7 @@ ENDIF (SSE_FOUND)
 
 Set(LINKDEF CbmAnalysisTreeInterfaceLinkDef.h)
 
-If(UNIX AND NOT APPLE)
-  Set(_AnalysisTree_LIB  AnalysisTreeBase.so AnalysisTreeInfra.so)
-  Else()
-  Set(_AnalysisTree_LIB  AnalysisTreeBase.dylib AnalysisTreeInfra.dylib)
-EndIf()
+Set(_AnalysisTree_LIB AnalysisTreeBase AnalysisTreeInfra)
 
 Set(DEPENDENCIES 
 	${_AnalysisTree_LIB} 
diff --git a/analysis/common/at_kfpf_interface/CMakeLists.txt b/analysis/common/at_kfpf_interface/CMakeLists.txt
index bddba6c0de..0cb156fc20 100644
--- a/analysis/common/at_kfpf_interface/CMakeLists.txt
+++ b/analysis/common/at_kfpf_interface/CMakeLists.txt
@@ -44,11 +44,7 @@ ENDIF (SSE_FOUND)
 
 Set(LINKDEF AnalysisTreeKfpfInterfaceLinkDef.h)
 
-If(UNIX AND NOT APPLE)
-  Set(_AnalysisTree_LIB  AnalysisTreeBase.so AnalysisTreeInfra.so)
-  Else()
-  Set(_AnalysisTree_LIB  AnalysisTreeBase.dylib AnalysisTreeInfra.dylib)
-EndIf()
+Set(_AnalysisTree_LIB AnalysisTreeBase AnalysisTreeInfra)
 
 Set(DEPENDENCIES 
 	${_AnalysisTree_LIB} 
-- 
GitLab