Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ option(MORPHO_GCSTRESSTEST "Stress tests the garbage collector" OFF)
option(MORPHO_BUILD_LINALG "Builds with linear algebra" ON)
option(MORPHO_BUILD_SPARSE "Builds with sparse matrix support" ON)
option(MORPHO_BUILD_GEOMETRY "Builds with geometry library" ON)
option(MORPHO_BUILD_PROFILER "Builds with profiler" OFF)

#-------------------------------------------------------------------------------
# Process options
Expand Down Expand Up @@ -53,6 +54,10 @@ if(MORPHO_BUILD_GEOMETRY)
target_compile_definitions(morpho PUBLIC MORPHO_INCLUDE_GEOMETRY)
endif()

if(MORPHO_BUILD_PROFILER)
target_compile_definitions(morpho PUBLIC _DEBUG_PROFILER)
endif()

#-------------------------------------------------------------------------------
# BLAS and LAPACK
#-------------------------------------------------------------------------------
Expand Down
4 changes: 3 additions & 1 deletion src/build.h
Original file line number Diff line number Diff line change
Expand Up @@ -185,4 +185,6 @@
//#define MORPHO_OPCODE_USAGE

/** @brief Buiild with profile support */
#define MORPHO_PROFILER
#ifdef _DEBUG_PROFILER
#define MORPHO_PROFILER
#endif
Loading