You need to change the “/path/to/your/anaconda3/envs/commonroad-py37” part to the environment location. You can find out this location by running: “conda info --envs”.
If this does not solve the issue you might need to edit the CMakeLists.txt in /commonroad-search/GSMP/tools/commonroad-collision-checker/cpp/CMakeLists.txt and add a new line with:
set(CMAKE_MODULE_PATH /usr/local/lib/cmake)
I had the same problem on mac os 10.12.6 Sierra.
Firstly I was missing pkgconfig, so I had to install it with brew install pkgconfig
But this didn’t resolve the problem, so I also had to add set(CMAKE_MODULE_PATH /usr/local/lib/cmake) to CMakeLists.txt as mentioned in one of the previous comments