fixed cmake parameters when building in mock environment