Skip to content

Commit

Permalink
update makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
srbhp committed Jul 13, 2024
1 parent d32977c commit 264d938
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
16 changes: 8 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand All @@ -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()
2 changes: 1 addition & 1 deletion docs/build.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 264d938

Please sign in to comment.