1# - Print a developer warning, using author_warning if we have cmake 2.8
2#
3#  warning_dev("your desired message")
4#
5# Original Author:
6# 2010 Ryan Pavlik <rpavlik@iastate.edu> <abiryan@ryand.net>
7# http://academic.cleardefinition.com
8# Iowa State University HCI Graduate Program/VRAC
9#
10# Copyright Iowa State University 2009-2010.
11# Distributed under the Boost Software License, Version 1.0.
12# (See accompanying file LICENSE_1_0.txt or copy at
13# http://www.boost.org/LICENSE_1_0.txt)
14
15function(warning_dev _yourmsg)
16	if("1.${CMAKE_VERSION}" VERSION_LESS "1.2.8.0")
17		# CMake version <2.8.0
18		message(STATUS
19			"The following is a developer warning - end users may ignore it")
20		message(STATUS "Dev Warning: ${_yourmsg}")
21	else()
22		message(AUTHOR_WARNING "${_yourmsg}")
23	endif()
24endfunction()
25