From d5086ebc75d18ead9e8ea86f9bed1ce97972691e Mon Sep 17 00:00:00 2001 From: jmcarcell Date: Thu, 23 May 2024 08:00:01 +0200 Subject: [PATCH] Fix --- python/CMakeLists.txt | 10 ++-------- tests/extra_code/implementations.cc | 7 +------ tests/extra_code/mutable_implementations.cc | 5 +---- 3 files changed, 4 insertions(+), 18 deletions(-) diff --git a/python/CMakeLists.txt b/python/CMakeLists.txt index 10a0322d2..99f16dc8b 100644 --- a/python/CMakeLists.txt +++ b/python/CMakeLists.txt @@ -1,11 +1,5 @@ -find_package(Python3 REQUIRED) -set(PYTHON_LIB_DIR lib) -if("${Python3_SITEARCH}" MATCHES "/lib64/") - set(PYTHON_LIB_DIR lib64) -endif() - -set(podio_PYTHON_INSTALLDIR "${CMAKE_INSTALL_PREFIX}/${PYTHON_LIB_DIR}/python${Python3_VERSION_MAJOR}.${Python3_VERSION_MINOR}/site-packages") -set(podio_PYTHON_INSTALLDIR ${podio_PYTHON_INSTALLDIR} PARENT_SCOPE) +SET(podio_PYTHON_INSTALLDIR python) +SET(podio_PYTHON_INSTALLDIR ${podio_PYTHON_INSTALLDIR} PARENT_SCOPE) set(to_install podio_class_generator.py diff --git a/tests/extra_code/implementations.cc b/tests/extra_code/implementations.cc index 7974ed12e..dc342e205 100644 --- a/tests/extra_code/implementations.cc +++ b/tests/extra_code/implementations.cc @@ -1,6 +1 @@ -bool { - name -} -::lt(int i) const { - return number() < i; -} \ No newline at end of file +bool {name}::lt(int i) const { return number() < i; } \ No newline at end of file diff --git a/tests/extra_code/mutable_implementations.cc b/tests/extra_code/mutable_implementations.cc index f9977ceff..49c9f3def 100644 --- a/tests/extra_code/mutable_implementations.cc +++ b/tests/extra_code/mutable_implementations.cc @@ -1,7 +1,4 @@ -int { - name -} -::reset() { +int {name}::reset() { number() = 0; return number(); } \ No newline at end of file