CMakePCHCompiler icon indicating copy to clipboard operation
CMakePCHCompiler copied to clipboard

Doesn't work on linux cmake 3.10.2

Open EngiBob opened this issue 6 years ago • 3 comments

-- The C compiler identification is GNU 7.3.0 -- The CXX compiler identification is GNU 7.3.0 -- Could not determine Eclipse version, assuming at least 3.6 (Helios). Adjust CMAKE_ECLIPSE_VERSION if this is wrong. -- Check for working C compiler: /usr/bin/cc -- Check for working C compiler: /usr/bin/cc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Detecting C compile features -- Detecting C compile features - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Warning at build/cmake/CMakePCHCompiler/CMakePCHCompiler.cmake:39 (message): Precompiled headers not supported for Call Stack (most recent call first): src/librender/CMakeLists.txt:9 (target_precompiled_header) -- Generating done

Looking at the source it is missing CMAKE_PCH_COMPILER_LANGUAGE

If I set CMAKE_PCH_COMPILER_LANGUAGE to CXX the following error comes up:

CMake Error: Error required internal CMake variable not set, cmake may not be built correctly. Missing variable is: CMAKE_CXXPCH_COMPILE_OBJECT

EngiBob avatar Dec 30 '18 06:12 EngiBob

I may be including it wrong.

EngiBob avatar Dec 30 '18 07:12 EngiBob

Confirmed

EngiBob avatar Dec 30 '18 07:12 EngiBob

Can you please provide a minimal CMakeLists.txt example showing the problem? I have CMake 3.14.2 and it seems to work for me.

nanoant avatar Apr 29 '19 20:04 nanoant