Skip to content
Merged
14 changes: 11 additions & 3 deletions core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,14 @@ macro(define X)
endif(DEFINED ${X})
endmacro()

# Variant of define() above that adds quotation marks around the variable X.
macro(defineString X)
Comment thread
erlingrj marked this conversation as resolved.
if(DEFINED ${X})
message(STATUS ${X}=\"${${X}}\")
target_compile_definitions(reactor-c PUBLIC ${X}=\"${${X}}\")
endif(DEFINED ${X})
endmacro()

# Search and apply all possible compile definitions
message(STATUS "Applying preprocessor definitions...")
define(_LF_CLOCK_SYNC_ATTENUATION)
Expand All @@ -178,9 +186,9 @@ define(NUMBER_OF_WORKERS)
define(NUMBER_OF_WATCHDOGS)
define(USER_THREADS)
define(SCHEDULER)
define(LF_SOURCE_DIRECTORY)
define(LF_SOURCE_GEN_DIRECTORY)
define(LF_PACKAGE_DIRECTORY)
define(LF_FILE_SEPARATOR)
define(WORKERS_NEEDED_FOR_FEDERATE)
define(LF_ENCLAVES)
defineString(LF_SOURCE_DIRECTORY)
defineString(LF_SOURCE_GEN_DIRECTORY)
defineString(LF_PACKAGE_DIRECTORY)
2 changes: 1 addition & 1 deletion lingua-franca-ref.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
master
cmake-init-include
Loading