File tree Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Expand file tree Collapse file tree 1 file changed +21
-4
lines changed Original file line number Diff line number Diff line change 55cmake_minimum_required (VERSION 3.30)
66
77option (RSP_CMAKE_SCRIPTS_BUILD_TESTS "Build tests for the RSP CMake Scripts project" off )
8+ option (RSP_ENABLE_ANSI "Enable ANSI output" false )
89
910# -------------------------------------------------------------------------------------------------------------- #
1011# Setup
@@ -65,17 +66,25 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
6566 include ("dev-dependencies.cmake" )
6667endif ()
6768
69+ # -------------------------------------------------------------------------------------------------------------- #
70+ # Toggle ANSI output
71+ # -------------------------------------------------------------------------------------------------------------- #
72+
73+ include ("rsp/output" )
74+
75+ if (RSP_ENABLE_ANSI)
76+ enable_ansi()
77+ else ()
78+ disable_ansi()
79+ endif ()
80+
6881# -------------------------------------------------------------------------------------------------------------- #
6982# Post-dependencies project setup
7083# -------------------------------------------------------------------------------------------------------------- #
7184
7285if (CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME )
7386 include ("rsp/debug" )
74- include ("rsp/output" )
7587 include ("rsp/logging" )
76-
77- enable_ansi()
78- # disable_ansi()
7988endif ()
8089
8190# -------------------------------------------------------------------------------------------------------------- #
@@ -91,5 +100,13 @@ endif ()
91100# Misc.
92101# -------------------------------------------------------------------------------------------------------------- #
93102
103+ log (
104+ NOTICE_LEVEL "Assets build completed"
105+ CONTEXT
106+ CMAKE_BINARY_DIR
107+ PROJECT_NAME
108+ CMAKE_PROJECT_NAME
109+ )
110+
94111# output_ansi_demo()
95112# dump(CMAKE_MODULE_PATH FOO BAR PROJECT_NAME)
You can’t perform that action at this time.
0 commit comments