1
0
Fork 0

Fix Hudson (Jenkins!) BUILD_ID check.

This commit is contained in:
ThorstenB 2011-12-28 12:24:22 +01:00
parent c831d9c857
commit e563e07d5a

View file

@ -63,7 +63,7 @@ if(NOT CMAKE_BUILD_TYPE)
FORCE) FORCE)
endif(NOT CMAKE_BUILD_TYPE) endif(NOT CMAKE_BUILD_TYPE)
if($ENV{BUILD_ID}) if(NOT "$ENV{BUILD_ID}" STREQUAL "")
set(HUDSON_BUILD_ID $ENV{BUILD_ID}) set(HUDSON_BUILD_ID $ENV{BUILD_ID})
set(HUDSON_BUILD_NUMBER $ENV{BUILD_NUMBER}) set(HUDSON_BUILD_NUMBER $ENV{BUILD_NUMBER})
message(STATUS "running under Hudson, build-number is ${HUDSON_BUILD_NUMBER}") message(STATUS "running under Hudson, build-number is ${HUDSON_BUILD_NUMBER}")