Fix cmake when VERSION doesn't exist.
This commit is contained in:
parent
303d50c197
commit
966327571d
@ -19,8 +19,10 @@ set( CMAKE_BUILD_TYPE Release )
|
|||||||
set( CMAKE_C_FLAGS "-O3" )
|
set( CMAKE_C_FLAGS "-O3" )
|
||||||
|
|
||||||
# Version.
|
# Version.
|
||||||
|
if(EXISTS "VERSION")
|
||||||
file( READ "VERSION" mpw_version )
|
file( READ "VERSION" mpw_version )
|
||||||
add_definitions( -DMP_VERSION=${VERSION} )
|
add_definitions( -DMP_VERSION=${mpw_version} )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
### DEPENDENCIES
|
### DEPENDENCIES
|
||||||
|
Loading…
Reference in New Issue
Block a user