cmake 2.4 has no LIMIT syntax in file command

cmake 2.4 http://www.cmake.org/HTML/CMake-2.4.html
  FILE(READ filename variable)

cmake 2.6 http://www.cmake.org/HTML/cmake-2.6.html
  file(READ filename variable [LIMIT numBytes] [OFFSET offset] [HEX])
This commit is contained in:
MATSUU Takuto 2008-06-25 01:49:37 +09:00 committed by Michael Gehring
parent c19fde1f01
commit 2b917037ed
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ if(EXISTS ${SOURCE_DIR}/.git/HEAD AND GIT_EXECUTABLE)
set(BUILD_FROM_GIT TRUE)
else()
# get version from version stamp
file(READ ${SOURCE_DIR}/.version_stamp VERSION LIMIT 128)
file(READ ${SOURCE_DIR}/.version_stamp VERSION)
endif()
# }}}