Code Monkey home page Code Monkey logo

Comments (3)

sakra avatar sakra commented on August 15, 2024

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.

cdcseacave avatar cdcseacave commented on August 15, 2024

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.

sakra avatar sakra commented on August 15, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.