[Kst] branches/work/kst/portto4/kst/cmake/modules

Peter Kümmel syntheticpp at gmx.net
Fri Jan 7 13:50:01 CET 2011


SVN commit 1212565 by kuemmel:

cmake: option output, only show ON or OFF

 M  +6 -1      KstMacros.cmake  


--- branches/work/kst/portto4/kst/cmake/modules/KstMacros.cmake #1212564:1212565
@@ -138,7 +138,12 @@
 	endif()
 	if(_msg)
 		string(SUBSTRING "kst_${_name}                            " 0 25 _var)
-		string(SUBSTRING "${kst_${_name}}     " 0 4 _val)
+		if(kst_${_name})
+			set(_isset ON)
+		else()
+			set(_isset OFF)
+		endif()
+		string(SUBSTRING "${_isset}     " 0 4 _val)
 		message(STATUS "${_var}= ${_val}   : ${_description}")
 	endif()
 endmacro()


More information about the Kst mailing list