From 37cecfc658acd2c0346a68ead1017c9e8bb7be0e Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sun, 7 Mar 2021 16:40:33 +0000 Subject: [PATCH] add option instead of set --- cmake/CodeGen.cmake | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmake/CodeGen.cmake b/cmake/CodeGen.cmake index 3d49f17..7e3fe16 100644 --- a/cmake/CodeGen.cmake +++ b/cmake/CodeGen.cmake @@ -1,4 +1,5 @@ -set(ENABLE_CODEGEN "Enable code generation for supported cores" ON) +cmake_minimum_required(VERSION 3.11) +option(ENABLE_CODEGEN "Enable code generation for supported cores" ON) #helper to setup code generation and generate outputs set(GENERATOR_JAR ${tgfs_SOURCE_DIR}/../coredsl/com.minres.coredsl.generator.repository/target/com.minres.coredsl.generator-2.0.0-SNAPSHOT.jar)