Skip to content

Commit 0c3ba66

Browse files
committed
revert CmakeGenerator changes
1 parent c42b3b4 commit 0c3ba66

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lfc/core/src/main/kotlin/org/lflang/generator/uc/UcCmakeGenerator.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)