File: SetDefaultBuildType.cmake

package info (click to toggle)
scantailor 0.9.12.2-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 7,564 kB
  • ctags: 9,057
  • sloc: cpp: 71,264; ansic: 481; sh: 121; makefile: 10
file content (9 lines) | stat: -rw-r--r-- 358 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
MACRO(ST_SET_DEFAULT_BUILD_TYPE TYPE_)
	IF(NOT CMAKE_BUILD_TYPE AND NOT DEFAULT_BUILD_TYPE_SET)
		SET(DEFAULT_BUILD_TYPE_SET TRUE CACHE INTERNAL "")
		SET(
			CMAKE_BUILD_TYPE "${TYPE_}" CACHE STRING
			"Build type (Release Debug RelWithDebInfo MinSizeRel)"
		)
	ENDIF(NOT CMAKE_BUILD_TYPE AND NOT DEFAULT_BUILD_TYPE_SET)
ENDMACRO(ST_SET_DEFAULT_BUILD_TYPE)