Skip to content

Instantly share code, notes, and snippets.

@bmegli
Created April 6, 2022 12:53
Show Gist options
  • Save bmegli/79623c94e41d23dcedad0a19f496d593 to your computer and use it in GitHub Desktop.
Save bmegli/79623c94e41d23dcedad0a19f496d593 to your computer and use it in GitHub Desktop.
CMake with certain gcc/g++ version
# e.g for gcc-6 and g++-6
export CC=/usr/bin/gcc-6
export CXX=/usr/bin/g++-6
cmake ..
make -j8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment