mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-27 22:10:06 +00:00
Adding an error check on version parsing of main CMakeLists
This commit is contained in:
parent
32fe4c54a4
commit
fdfdb1cc8b
@ -32,6 +32,8 @@ if(EXISTS "${CMAKE_SOURCE_DIR}/opensubdiv/version.h")
|
||||
file(STRINGS "${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")
|
||||
endif()
|
||||
|
||||
#-------------------------------------------------------------------------------
|
||||
|
Loading…
Reference in New Issue
Block a user