Added check of BUILD variable in CMakeLists.txt
Merge pull request #237 from topilski/master

Added check of BUILD variable in CMakeLists.txt