From f51aa71455fc6d928fed4cc11cdda50c369085ae Mon Sep 17 00:00:00 2001 From: "Edward A. Lee" Date: Sat, 7 Dec 2024 13:19:49 -0800 Subject: [PATCH] Format --- .../java/org/lflang/generator/c/CCmakeGenerator.java | 1 + .../org/lflang/generator/python/PythonGenerator.java | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java index ddceb36e54..d187dc98f5 100644 --- a/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java +++ b/core/src/main/java/org/lflang/generator/c/CCmakeGenerator.java @@ -92,6 +92,7 @@ public CCmakeGenerator( /** * Set the code generator for the CMake main target. + * * @param setUpMainTarget */ public void setCmakeGenerator(SetUpMainTarget setUpMainTarget) { diff --git a/core/src/main/java/org/lflang/generator/python/PythonGenerator.java b/core/src/main/java/org/lflang/generator/python/PythonGenerator.java index 76fa02d3ac..71138ec187 100644 --- a/core/src/main/java/org/lflang/generator/python/PythonGenerator.java +++ b/core/src/main/java/org/lflang/generator/python/PythonGenerator.java @@ -647,13 +647,14 @@ protected void additionalPostProcessingForModes() { PythonModeGenerator.generateResetReactionsIfNeeded(reactors); } - public String getCmakeCode( - boolean hasMain, String executableName, Stream cSources) { + public String getCmakeCode(boolean hasMain, String executableName, Stream cSources) { // According to https://cmake.org/cmake/help/latest/module/FindPython.html#hints, the following // should work to select the version of Python given in your virtual environment. // However, this does not work for me (macOS Sequoia 15.0.1). - // As a consequence, the python-version target property can be used to specify the exact Python version. - var pythonVersion = "3.10.0"; // Allows 3.10 or later. Change to "3.10.0...<3.11.0" to require 3.10 by default. + // As a consequence, the python-version target property can be used to specify the exact Python + // version. + var pythonVersion = + "3.10.0"; // Allows 3.10 or later. Change to "3.10.0...<3.11.0" to require 3.10 by default. if (targetConfig.isSet(PythonVersionProperty.INSTANCE)) { pythonVersion = targetConfig.get(PythonVersionProperty.INSTANCE) + " EXACT"; }