CMake Error at /home/user/workspace/CMakePCHCompiler/CMakePCHCompiler.cmake:116 (add_library):
CXXPCH_STANDARD is set to invalid value '17'
Call Stack (most recent call first):
CMakeLists.txt:10 (target_precompiled_header)
There is code that deals with this in the module. I don't know if it neglects 17 exclusively or not off the top of my head. It may hardcode the version numbers. 17 may be newer than CMakePCHCompiler.
Setting CMAKE_CXX_STANDARD leads to error
Minimal
CMakeLists.txt
example reproducing bug or showing requested feature:Leads to error:
Additional information