Added protection against compiling the sources from trunk. It is not supported adn you should really know what you are doing.
This commit is contained in:
parent
3800071f98
commit
07fafbe61c
1 changed files with 5 additions and 0 deletions
|
@ -2,6 +2,11 @@ PROJECT( telldus-core )
|
|||
|
||||
CMAKE_MINIMUM_REQUIRED( VERSION 2.6.0 )
|
||||
|
||||
OPTION(FORCE_COMPILE_FROM_TRUNK FALSE "Accept compiling source from trunk. This is unsupported and highly unrecommended")
|
||||
IF(NOT FORCE_COMPILE_FROM_TRUNK)
|
||||
MESSAGE(FATAL_ERROR "You are compiling sources from trunk. Don't do that!")
|
||||
ENDIF(NOT FORCE_COMPILE_FROM_TRUNK)
|
||||
|
||||
IF (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
|
||||
INCLUDE_DIRECTORIES(/usr/local/include)
|
||||
LINK_DIRECTORIES(/usr/local/lib)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue