Skip to content

Commit 093bc03

Browse files
committed
Enable ANSI, when project is top-level
1 parent 4fcb60c commit 093bc03

File tree

1 file changed

+15
-10
lines changed

1 file changed

+15
-10
lines changed

CMakeLists.txt

Lines changed: 15 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,19 @@ if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
6565
include("dev-dependencies.cmake")
6666
endif()
6767

68+
# -------------------------------------------------------------------------------------------------------------- #
69+
# Post-dependencies project setup
70+
# -------------------------------------------------------------------------------------------------------------- #
71+
72+
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
73+
include("rsp/debug")
74+
include("rsp/output")
75+
include("rsp/logging")
76+
77+
enable_ansi()
78+
# disable_ansi()
79+
endif()
80+
6881
# -------------------------------------------------------------------------------------------------------------- #
6982
# Tests
7083
# -------------------------------------------------------------------------------------------------------------- #
@@ -78,13 +91,5 @@ endif ()
7891
# Misc.
7992
# -------------------------------------------------------------------------------------------------------------- #
8093

81-
if(CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME)
82-
include("rsp/debug")
83-
include("rsp/output")
84-
85-
enable_ansi()
86-
87-
# output_ansi_demo()
88-
89-
# dump(CMAKE_MODULE_PATH FOO BAR PROJECT_NAME)
90-
endif()
94+
# output_ansi_demo()
95+
# dump(CMAKE_MODULE_PATH FOO BAR PROJECT_NAME)

0 commit comments

Comments
 (0)