better usage of cmake variable