nanoant / CMakePCHCompiler

CMake precompiled header support via custom PCH compiler extension
MIT License
103 stars 20 forks source link

Doesn't work on linux cmake 3.10.2 #26

Open EngiBob opened 5 years ago

EngiBob commented 5 years ago

-- 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 commented 5 years ago

I may be including it wrong.

EngiBob commented 5 years ago

Confirmed

nanoant commented 5 years ago

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.