summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
author0scar <qgt268@alumni.ku.dk>2024-02-06 16:24:59 +0000
committer0scar <qgt268@alumni.ku.dk>2024-02-06 16:37:29 +0000
commit1c4b303621b08e8e0e43a5412ff0a1b4cd8d2ae1 (patch)
tree3c4f3eb3014b5d40dbd221bc21202f05621132fa /src/core
parentd96f7015eefae59e37e11fe21aed22df1d71c96c (diff)
Fix hot reloading
Diffstat (limited to 'src/core')
-rw-r--r--src/core/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/CMakeLists.txt b/src/core/CMakeLists.txt
index c75cdf6..82ccfdd 100644
--- a/src/core/CMakeLists.txt
+++ b/src/core/CMakeLists.txt
@@ -14,3 +14,7 @@ set_property(SOURCE src/loop.c APPEND PROPERTY OBJECT_DEPENDS ${GLAD_HEADER})
target_include_directories(daw_core PRIVATE ${DAW_INCLUDE_DIRS})
target_link_libraries(daw_core PRIVATE cglm)
+
+target_compile_definitions(daw_core PUBLIC
+ $<$<BOOL:${DAW_BUILD_HOTRELOAD}>:DAW_BUILD_HOTRELOAD>
+)