Skip to content
This repository was archived by the owner on Apr 2, 2025. It is now read-only.
This repository was archived by the owner on Apr 2, 2025. It is now read-only.

cotire and GCC flag "-include header.h" #168

Description

@kreuzerkrieg

I have a header which is included into every compilation unit using GCC command line argument -include header.h
Can I apply cotire on this header to use it as precompiled header? something like

SET_TARGET_PROPERTIES(MyProject PROPERTIES COTIRE_CXX_PREFIX_HEADER_INIT "header.h")
COTIRE(My project)

If this solution is applicable, for some reason it doesnt work, fails in CMake generation stage with

Problems were encountered while collecting compiler information:
c++: error: /home/user/Development/cmake-build-debug/lib/MyProject/cotire/MyProject_CXX_prefix.hxx: No such file or directory

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions