Need to compile with: mkdir build cd build cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=CC .. cmake --build .