Skip to content

Include directories should not be in CACHE #49

@asmodehn

Description

@asmodehn

Although It can seems useful to see in the cache which include directories will be used, It can be problematic when someone :

  • get a new cmakelist.txt that change the list of includes ( update or switch branch in VCS for example ).
  • trigger a new cmake ( by using the IDE, for example visual studio trigerring a cmake configure ) but keeping the cache ( default cmake behavior )
  • new include directories are not registered ( we dont change the existing cache values ).
  • build will fail for reason not obvious to track down.

And Maybe it s the same for lib dependencies ?

=> we should review which variable we use in cache ( they are made for user customization only ). Other variable that user is not supposed to change should not be in cache. CMake 3.0 now has functions and macros and scope for variables, so we should use it properly.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions