From 57ce6aab92dbd77804486b8f722563b0d66492b8 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Tue, 16 Apr 2024 13:13:21 +0200 Subject: [PATCH] updates dbt-rise-tgc and updates build system --- .cproject | 13 ++++++++++++- .gitignore | 3 ++- CMakeLists.txt | 25 +++++++++++++------------ dbt-rise-tgc | 2 +- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/.cproject b/.cproject index 13308bd..db5a790 100644 --- a/.cproject +++ b/.cproject @@ -192,7 +192,6 @@ - @@ -214,4 +213,16 @@ + + + + make + $<cmake4eclipse_dyn> + format + true + true + true + + + \ No newline at end of file diff --git a/.gitignore b/.gitignore index 7e51240..58016a4 100644 --- a/.gitignore +++ b/.gitignore @@ -20,4 +20,5 @@ /fasterDecoding/ *.ll /dbt-rise-plugins -/.direnv \ No newline at end of file +/.direnv +/TGC_C_XRB/ diff --git a/CMakeLists.txt b/CMakeLists.txt index 50c0043..9cab3fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -117,27 +117,28 @@ if(CMAKE_PROJECT_NAME STREQUAL "TGC-ISS") # Boost on CentOS 7 quirks: the b2 of conan-center is build against a newer libstdc++ and therefore does not run # with the oooooold libs on CentOS 7. Therefore we build our own version of b2 if it is not there ########################################################################### - set(B2_META $ENV{HOME}/.conan/data/b2/${B2_VERSION}/_/_/metadata.json) - set(CM_META $ENV{HOME}/.conan/data/cmake/${CM_VERSION}/_/_/metadata.json) - set(LLVM_META $ENV{HOME}/.conan/data/llvm-core/${LLVM_VERSION}/_/_/metadata.json) - if(DEFINED ENV{CONAN_USER_HOME}) - set(B2_META $ENV{CONAN_USER_HOME}/.conan/data/b2/${B2_VERSION}/_/_/metadata.json) - set(CMAKE_META $ENV{CONAN_USER_HOME}/.conan/data/cmake/${CM_VERSION}/_/_/metadata.json) - endif() - if(NOT EXISTS ${CM_META}) - conan_configure(REQUIRES cmake/${CM_VERSION}) - conan_cmake_autodetect(settings BUILD_TYPE Release) - conan_cmake_install(PATH_OR_REFERENCE . BUILD cmake SETTINGS ${settings}) - endif() find_program(LSB_RELEASE_EXEC lsb_release) if(NOT LSB_RELEASE_EXEC-NOTFOUND) execute_process(COMMAND "${LSB_RELEASE_EXEC}" --short --id OUTPUT_VARIABLE LSB_RELEASE_ID_SHORT OUTPUT_STRIP_TRAILING_WHITESPACE) if(LSB_RELEASE_ID_SHORT MATCHES "CentOS") + set(B2_META $ENV{HOME}/.conan/data/b2/${B2_VERSION}/_/_/metadata.json) + set(CM_META $ENV{HOME}/.conan/data/cmake/${CM_VERSION}/_/_/metadata.json) + set(LLVM_META $ENV{HOME}/.conan/data/llvm-core/${LLVM_VERSION}/_/_/metadata.json) + if(DEFINED ENV{CONAN_USER_HOME}) + set(B2_META $ENV{CONAN_USER_HOME}/.conan/data/b2/${B2_VERSION}/_/_/metadata.json) + set(CMAKE_META $ENV{CONAN_USER_HOME}/.conan/data/cmake/${CM_VERSION}/_/_/metadata.json) + set(LLVM_META $ENV{CONAN_USER_HOME}/.conan/data/llvm-core/${LLVM_VERSION}/_/_/metadata.json) + endif() if(NOT EXISTS ${B2_META}) conan_configure(REQUIRES b2/${B2_VERSION}) conan_cmake_autodetect(settings BUILD_TYPE Release) conan_cmake_install(PATH_OR_REFERENCE . BUILD b2 SETTINGS ${settings}) endif() + if(NOT EXISTS ${CM_META}) + conan_configure(REQUIRES cmake/${CM_VERSION}) + conan_cmake_autodetect(settings BUILD_TYPE Release) + conan_cmake_install(PATH_OR_REFERENCE . BUILD cmake SETTINGS ${settings}) + endif() if(NOT EXISTS ${LLVM_META}) conan_configure(REQUIRES llvm-core/13.0.0) conan_cmake_autodetect(settings BUILD_TYPE Release) diff --git a/dbt-rise-tgc b/dbt-rise-tgc index fbcd389..6cb76fc 160000 --- a/dbt-rise-tgc +++ b/dbt-rise-tgc @@ -1 +1 @@ -Subproject commit fbcd389580cb7257aeebc61e249a830fd0d3920a +Subproject commit 6cb76fc256e6e3f54faf36b7f0c66c5259f6bc05