File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
lfc/core/src/main/kotlin/org/lflang/generator/uc Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -53,12 +53,13 @@ abstract class UcCmakeGenerator(
5353 |set(SOURCE_FOLDER ${fileConfig.srcPath} )
5454 |set(CMAKE_BUILD_TYPE ${targetConfig.getOrDefault(BuildTypeProperty .INSTANCE )} )
5555 |set(PLATFORM POSIX CACHE STRING "Target platform")
56- |include(. /Include.cmake)
56+ |include($S {CMAKE_CURRENT_SOURCE_DIR} /Include.cmake)
5757 |add_executable($S {LF_MAIN_TARGET} $S {LFC_GEN_SOURCES} $S {LFC_GEN_MAIN})
5858 |install(TARGETS $S {LF_MAIN_TARGET}
5959 | RUNTIME DESTINATION $S {CMAKE_INSTALL_BINDIR}
6060 | OPTIONAL
6161 |)
62+ |add_compile_definitions("LF_LOG_LEVEL_ALL=LF_LOG_LEVEL_${targetConfig.getOrDefault(LoggingProperty .INSTANCE ).name.uppercase()} ")
6263 |add_compile_definitions($S {LFC_GEN_COMPILE_DEFS})
6364 |add_subdirectory($S {RUNTIME_PATH})
6465 |target_link_libraries($S {LF_MAIN_TARGET} PRIVATE reactor-uc)
You can’t perform that action at this time.
0 commit comments