Fix CMake error message

This commit is contained in:
manuelk 2013-11-27 10:35:49 -08:00
parent e072b19c2a
commit ee26835d47

View File

@ -33,7 +33,7 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/opensubdiv/version.h")
OpenSubdiv_VERSION REGEX "^#define OPENSUBDIV_VERSION .*$")
string(REPLACE "#define OPENSUBDIV_VERSION " "" OpenSubdiv_VERSION ${OpenSubdiv_VERSION})
else()
error("Cannot locate opensubdiv/version.h in CMAKE_SOURCE_DIR")
message(FATAL_ERROR, "Cannot locate opensubdiv/version.h in CMAKE_SOURCE_DIR")
endif()
#-------------------------------------------------------------------------------