Comments (3)
Regarding issue 1: Add stdafx.cpp
as the first file in your add_executable
or add_library
call. Cotire will then use it as a host file for generating the precompiled header.
Regarding issue 2: Cotire already uses CMAKE_CFG_INTDIR
, which translates to $(IntDir)
or something similar on Visual Studio in the path to all temporary files it generates.
from cotire.
Thanks for the first tip, I'll try it.
However for the second I have to disagree, the PCH file is created and used in the same folder as the HXX header which is:
MYSOLUTION\MYPROJECT$(Configuration)\cotire\MYPROJECT_CXX_prefix.pch
Am I configuring cotire wrong? How can I solve it?
from cotire.
CMake replaces CMAKE_CFG_INTDIR
with $(Configuration)
in the generated Visual Studio 10 projects. There is however a work-around you can try. Before the inclusion of cotire, add the following code:
if (MSVC10)
set (COTIRE_INTDIR "$(Platform)/cotire")
endif()
include(cotire)
This should make cotire generate an intermediate folder with platform name.
from cotire.
Related Issues (20)
- cotire and GCC flag "-include header.h"
- Project status HOT 2
- Problem using Cotire with Xcode10 New Build System HOT 1
- Run cotire from a different directory
- cxx
- MSVC 2017 /Fp and /Yc and /Yu Flags Broken On 391bf6b7609e14f5976bd5247b68d63cbf8d4d12 HOT 4
- Is it possible to exclude precompiled headers from the clean target?
- Exclude unity source from visual studio scanning
- How to configure runtime/thirdparty headers alone HOT 1
- Evaluation file to be written multiple times with different content
- Target cannot be cotired HOT 3
- why is PCH generation restricted to clang-cl on windows?
- Problems were encountered - C1083: Cannot open include file HOT 2
- New pre-compiled headers support in CMake 3.16 HOT 2
- cotire slows down the compilation of the test code
- MSVC target to be cotired has warning level: /W4 created cotire target: /W1
- Same Target Had been compile Twice with different Compile flags, but the prebuild header file hadn't been recreated. HOT 2
- redefinition of class 'xxxx'
- [pkgconfig] cotire doesn't fully support cmake function FindPkgConfig HOT 1
- Project output directory. Android HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cotire.