-1

How can I get full option string "-std=..." after set(CMAKE_CXX_STANDARD 17) ? String with a flag must be obtained inside CmakeLists.txt.

user1931823
  • 105
  • 1
  • 2
  • 6

1 Answers1

0

"$(CXX_FLAGS)" (round brackets important) contains "-std=..." flag and expand inside a makefile.

user1931823
  • 105
  • 1
  • 2
  • 6