How can I get full option string "-std=..." after set(CMAKE_CXX_STANDARD 17) ? String with a flag must be obtained inside CmakeLists.txt.
Asked
Active
Viewed 358 times
-1
-
It is need for build precompilled headers. Actually possible use may be different. – user1931823 Jul 28 '17 at 10:44
-
To generate, build and integrate PCHs with CMake with minimal effort have a look at [cotire](https://github.com/sakra/cotire). – Torbjörn Jul 28 '17 at 20:24
1 Answers
0
"$(CXX_FLAGS)" (round brackets important) contains "-std=..." flag and expand inside a makefile.

user1931823
- 105
- 1
- 2
- 6