From cdbb6104b1351471e6792cc96f82eae92539c5bf Mon Sep 17 00:00:00 2001 From: Renaud G Date: Fri, 29 Apr 2022 11:38:59 +0200 Subject: dice is compiled by default. --- CMakeLists.txt | 2 +- src/bin/CMakeLists.txt | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7198d92..13998a1 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,7 +4,7 @@ project(diceparser VERSION 1.9.0 DESCRIPTION "Parser of dice command") include(CTest) -option(BUILD_CLI ON) +option(NO_BUILD_CLI OFF) option(NO_PAINTER_OPERATOR OFF) IF(BUILD_TESTING) diff --git a/src/bin/CMakeLists.txt b/src/bin/CMakeLists.txt index 5e1ebd3..31037cd 100644 --- a/src/bin/CMakeLists.txt +++ b/src/bin/CMakeLists.txt @@ -1,5 +1,5 @@ cmake_minimum_required(VERSION 3.16) -if(BUILD_CLI) +if(NOT NO_BUILD_CLI) add_subdirectory(cli) -endif() \ No newline at end of file +endif() -- cgit v1.2.3-70-g09d2