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.

Same Target Had been compile Twice with different Compile flags, but the prebuild header file hadn't been recreated. #184

@lxy9527

Description

@lxy9527

as the title , we meet this problem ,
below ,we will make a example to explain what i meet .
In my CMakeLists, we had build three target , A , B , C
both A and B with depend C .

  1. build A , C target , compile flag with -DLE ,
  2. build B , C target , compile flag with -DBG
    when we build A C target with -DLE had been successed , we start build B, C target with -DBG
    then the prebuild head file hadn't recreate , so an error had occur as below .
    cc1: warning: xxx_C_prefix.h.gch: not used because `LE' not defined [-Winvalid-pch]

Is there any comman can force recreate the prebuild header file ?

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