2
0

Fix cmake when VERSION doesn't exist.

This commit is contained in:
Maarten Billemont 2017-11-06 12:22:13 -05:00
parent 303d50c197
commit 966327571d

View File

@ -19,8 +19,10 @@ set( CMAKE_BUILD_TYPE Release )
set( CMAKE_C_FLAGS "-O3" )
# Version.
if(EXISTS "VERSION")
file( READ "VERSION" mpw_version )
add_definitions( -DMP_VERSION=${VERSION} )
add_definitions( -DMP_VERSION=${mpw_version} )
endif()
### DEPENDENCIES