Skip to content

Instantly share code, notes, and snippets.

@alastorid
Last active December 12, 2024 12:28
Show Gist options
  • Save alastorid/ef04a9d018c89125582cff039a1ece4e to your computer and use it in GitHub Desktop.
Save alastorid/ef04a9d018c89125582cff039a1ece4e to your computer and use it in GitHub Desktop.
cmake cxx_std_17 is not known to CXX compiler but scl enabled devtoolset-X
target_compile_features The compiler feature "cxx_std_17" is not known to
CXX compiler
"GNU"
version 4.8.5.
solution:
scl enable devtoolset-7 bash
cmake .. -DCMAKE_CXX_COMPILER=`which g++` -DCMAKE_C_COMPILER=`which gcc`
You may need to run the cmake command twice.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment