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.
|
||||||
file( READ "VERSION" mpw_version )
|
if(EXISTS "VERSION")
|
||||||
add_definitions( -DMP_VERSION=${VERSION} )
|
file( READ "VERSION" mpw_version )
|
||||||
|
add_definitions( -DMP_VERSION=${mpw_version} )
|
||||||
|
endif()
|
||||||
|
|
||||||
|
|
||||||
### DEPENDENCIES
|
### DEPENDENCIES
|
||||||
|
Loading…
Reference in New Issue
Block a user