Enable memory profiling and fix compile issues when building without tracy

This commit is contained in:
Alexander Bock
2024-03-28 16:05:06 +01:00
parent cdf98f7889
commit 2203eb6df6
3 changed files with 5 additions and 2 deletions

View File

@@ -115,6 +115,9 @@ set(SGCT_DEP_INCLUDE_FREETYPE OFF CACHE BOOL "" FORCE)
set(SGCT_DEP_INCLUDE_FMT OFF CACHE BOOL "" FORCE)
set(SGCT_DEP_INCLUDE_SCN OFF CACHE BOOL "" FORCE)
set(SGCT_DEP_INCLUDE_CATCH2 OFF CACHE BOOL "" FORCE)
if (TRACY_ENABLE)
set(SGCT_MEMORY_PROFILING ON CACHE BOOL "" FORCE)
endif ()
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/ext/sgct)
target_link_libraries(OpenSpace PRIVATE sgct)