diff options
author | Peter Collingbourne <peter@pcc.me.uk> | 2012-03-17 20:49:36 +0000 |
---|---|---|
committer | Peter Collingbourne <peter@pcc.me.uk> | 2012-03-17 23:16:40 +0000 |
commit | df847671b43f35162570db1e6f2801bc3b2de11a (patch) | |
tree | e9a985a74f40621013a07f7289a2add8591bfe30 /Tests/PrecompiledHeader/CMakeLists.txt | |
parent | 48eb7fc7d7b3fa5570a7b32968fa2cff07bf6fe7 (diff) | |
download | cmake-df847671b43f35162570db1e6f2801bc3b2de11a.tar.gz |
Ninja: add support for OBJECT_OUTPUTS, fix PrecompiledHeader test case
Diffstat (limited to 'Tests/PrecompiledHeader/CMakeLists.txt')
-rw-r--r-- | Tests/PrecompiledHeader/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Tests/PrecompiledHeader/CMakeLists.txt b/Tests/PrecompiledHeader/CMakeLists.txt index d423cae303..3374e325f6 100644 --- a/Tests/PrecompiledHeader/CMakeLists.txt +++ b/Tests/PrecompiledHeader/CMakeLists.txt @@ -47,7 +47,8 @@ SET_SOURCE_FILES_PROPERTIES(foo_precompile.c PROPERTIES # Setup dependencies for precompiled header creation and use. The VS # IDE takes care of this automatically. -IF("${CMAKE_GENERATOR}" MATCHES "Makefile") +IF("${CMAKE_GENERATOR}" MATCHES "Makefile" OR + "${CMAKE_GENERATOR}" MATCHES "Ninja") # This source file creates the precompiled header as a side-effect. SET_SOURCE_FILES_PROPERTIES(foo_precompile.c PROPERTIES OBJECT_OUTPUTS "${PCH_DIR}/foo_precompiled.pch") |