nanoant / CMakePCHCompiler

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

Does not work with cmake 3.1 compatibility level #2

Closed gjasny closed 9 years ago

gjasny commented 9 years ago

Hello,

I added an example (08a33206c336c22fe3e39027643c737f15a6cc46) as proposed by the Readme.md but set the cmake compatibility to 3.1. Then I get:

-- 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
CMake Warning at /Users/gjasny/src/CMakePCHCompiler/CMakePCHCompiler.cmake:39 (message):
  Precompiled headers not supported for AppleClang
Call Stack (most recent call first):
  CMakeLists.txt:8 (target_precompiled_header)

CMake Warning at /Users/gjasny/src/CMakePCHCompiler/CMakePCHCompiler.cmake:39 (message):
  Precompiled headers not supported for AppleClang
Call Stack (most recent call first):
  CMakeLists.txt:12 (target_precompiled_header)

-- Configuring done
-- Generating done
-- Build files have been written to: /Users/gjasny/src/CMakePCHCompiler/example

I'm using CMake 3.1.3 with Xcode 6.1.1 on OSX Yosemite.

Thanks, Gregor

nanoant commented 9 years ago

Fixed in 7bfe5b2d92adc2002937c86917646f5446b0349c. Thank you.