zynaddsubfx

ZynAddSubFX open source synthesizer
Log | Files | Refs | Submodules | LICENSE

commit e104134f51586f752fe445184beb6012ad169c19
parent b3f421150d21f2e891ac70c72bb3ab457e91ed85
Author: fundamental <[email protected]>
Date:   Sun, 15 Mar 2015 10:10:13 -0400

CMake: Fix Uncolored Output

Diffstat:
Msrc/CMakeLists.txt | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt @@ -408,7 +408,12 @@ message(STATUS) message(STATUS "Building on a '${CMAKE_SYSTEM_NAME}' System") -macro(package_status foundvar pkg state color) +macro(package_status foundvar pkg state)#optional color + set (extra_macro_args ${ARGN}) + list(LENGTH extra_macro_args num_extra_args) + if (${num_extra_args} GREATER 0) + list(GET extra_macro_args 0 color) + endif () if(${foundvar}) message(STATUS "${pkg} -- ${Green}${state}${ColorReset}") else()