resolving error with CMake