diff --git a/core/CMakeLists.txt b/core/CMakeLists.txt index 6d938ae0c..fdcc66118 100644 --- a/core/CMakeLists.txt +++ b/core/CMakeLists.txt @@ -153,6 +153,13 @@ macro(define X) endif(DEFINED ${X}) endmacro() +macro(defineString X) + 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) @@ -178,9 +185,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) diff --git a/lingua-franca-ref.txt b/lingua-franca-ref.txt index edf165c42..cf1c8ed75 100644 --- a/lingua-franca-ref.txt +++ b/lingua-franca-ref.txt @@ -1 +1 @@ -fix-concurrency \ No newline at end of file +cmake-init-include \ No newline at end of file