From 264d9383244e5d41bb36d867aefdfca059e30df6 Mon Sep 17 00:00:00 2001 From: "Saurabh Pradhan(on Thinkstation)" Date: Sat, 13 Jul 2024 18:38:27 +0200 Subject: [PATCH] update makefile --- CMakeLists.txt | 16 ++++++++-------- docs/build.rst | 2 +- makefile | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 25922b0..183fc2e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,7 +11,7 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON) set(CLANG_ENABLE_STATIC_ANALYZER ON) set(LLVM_ENABLE_PROJECTS "clang;clang-tools-extra;compiler-rt;llvm-spirv;sycl;libclc") set(LLVM_ENABLE_RUNTIMES "libcxx;libcxxabi") - +set(CMAKE_CXX_FLAGS " -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -fsanitize=address,leak,undefined -Wno-narrowing -fsanitize-recover=all -g -O0" ) # Add the cmake folder so the FindSphinx module is found set(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake" ${CMAKE_MODULE_PATH}) @@ -28,12 +28,12 @@ set(THREADS_PREFER_PTHREAD_FLAG ON) # This is just for us, we do prefer pthreads # Create Documentation add_subdirectory("nrgcore") add_subdirectory("docs") -add_subdirectory("examples/rgflowSIAM") +# add_subdirectory("examples/rgflowSIAM") #add_subdirectory("examples/entropySIAM") # add all sub directories .. -# file(GLOB V_GLOB LIST_DIRECTORIES true "examples/*") -# foreach(item ${V_GLOB}) -# if(IS_DIRECTORY ${item}) -# add_subdirectory(${item}) -# endif() -# endforeach() +file(GLOB V_GLOB LIST_DIRECTORIES true "examples/*") +foreach(item ${V_GLOB}) + if(IS_DIRECTORY ${item}) + add_subdirectory(${item}) + endif() +endforeach() diff --git a/docs/build.rst b/docs/build.rst index 672630b..d837005 100644 --- a/docs/build.rst +++ b/docs/build.rst @@ -30,7 +30,7 @@ Ubuntu/Debian based Linux OS ----------------------------------- Here is a list commands for to install the dependencies. - .. code-block:: python + .. code-block:: bash sudo apt-get update sudo apt-get install sphinx-doc doxygen graphviz libhdf5-dev --yes diff --git a/makefile b/makefile index 1019c18..866573a 100644 --- a/makefile +++ b/makefile @@ -6,7 +6,7 @@ build: rm -rf build mkdir build # Clang for debug - cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -Bbuild -DCMAKE_CXX_FLAGS=" -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -fsanitize=address,leak,undefined -Wno-narrowing -fsanitize-recover=all -g -O0" -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang . + cmake -G Ninja -Bbuild -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang . # GCC #cmake -G Ninja -DCMAKE_EXPORT_COMPILE_COMMANDS=TRUE -Bbuild -DCMAKE_CXX_FLAGS=" -D_GLIBCXX_USE_TBB_PAR_BACKEND=0 -fsanitize=address,leak,undefined -Wno-narrowing -fsanitize-recover=all -g -O0" -DCMAKE_CXX_COMPILER=g++ . # Intel Compiler