diff options
| author | kat <kat@vector35.com> | 2024-10-30 08:39:09 -0400 |
|---|---|---|
| committer | kat <kat@vector35.com> | 2024-11-05 09:03:12 -0500 |
| commit | f4a4b17b9e30cf603eb614e153d68226a3b24520 (patch) | |
| tree | e33d18742c1a9e9b47af04df24bf88248c17f06a /view/sharedcache/workflow | |
| parent | fd8eb478a7a3bbc848da37bd33e62c2d8cf26b99 (diff) | |
[SharedCache] Implement LoadedImage API, Fix serialized image names, more robust system for out-of-date databases
Diffstat (limited to 'view/sharedcache/workflow')
| -rw-r--r-- | view/sharedcache/workflow/CMakeLists.txt | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/view/sharedcache/workflow/CMakeLists.txt b/view/sharedcache/workflow/CMakeLists.txt index 7648492a..7a9c157a 100644 --- a/view/sharedcache/workflow/CMakeLists.txt +++ b/view/sharedcache/workflow/CMakeLists.txt @@ -4,16 +4,34 @@ project(sharedcacheworkflow) file(GLOB SOURCES *.cpp *.h) add_library(sharedcacheworkflow OBJECT ${SOURCES}) +set(COMPILE_DEFS "") + +if (HARD_FAIL_MODE) + set(COMPILE_DEFS "${COMPILE_DEFS} ABORT_FAILURES") +endif() + +if (BN_REF_COUNT_DEBUG) + set(COMPILE_DEFS "${COMPILE_DEFS} BN_REF_COUNT_DEBUG;") +endif() + +if (SLIDEINFO_DEBUG_TAGS) + set(COMPILE_DEFS "${COMPILE_DEFS} SLIDEINFO_DEBUG_TAGS;") +endif() + +if (METADATA_VERSION) + set(COMPILE_DEFS "${COMPILE_DEFS} METADATA_VERSION=${METADATA_VERSION};") +else() + message(FATAL_ERROR "No metadata version provided. Fatal.") +endif() + if (VIEW_NAME) - if (BN_REF_COUNT_DEBUG) - target_compile_definitions(sharedcacheworkflow PRIVATE VIEW_NAME="${VIEW_NAME}" BN_REF_COUNT_DEBUG) - else() - target_compile_definitions(sharedcacheworkflow PRIVATE VIEW_NAME="${VIEW_NAME}") - endif() + set(COMPILE_DEFS "${COMPILE_DEFS} VIEW_NAME=\"${VIEW_NAME}\"") else() - error("VIEW_NAME must be defined") + message(FATAL_ERROR "No view name provided. Fatal.") endif() +target_compile_definitions(sharedcacheworkflow PRIVATE ${COMPILE_DEFS}) + function(get_recursive_include_dirs target result) # Initialize an empty list to store include directories |
