Skip to content
Snippets Groups Projects
Forked from CMake / CMake
17687 commits behind the upstream repository.
  • Cristian Adam's avatar
    8a2977ba
    OBJCXX: Fix regression for compiling cpp files as objcxx · 8a2977ba
    Cristian Adam authored and Brad King's avatar Brad King committed
    In commit 8d61294c (PCH: Mark CMake PCH source files as -x
    <lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x
    objective-c++` flag.  This broke cases with custom source extensions.
    
    Restore the explicit `-x objective-c[++]` flag and put it before the
    `<FLAGS>` placeholder.  The latter will contain the proper `-x
    objective-c[++]-header` value and will override the `-x objective-c[++]`
    value set before.
    
    Fixes: #21234
    8a2977ba
    History
    OBJCXX: Fix regression for compiling cpp files as objcxx
    Cristian Adam authored and Brad King's avatar Brad King committed
    In commit 8d61294c (PCH: Mark CMake PCH source files as -x
    <lang>-header, 2020-09-04, v3.18.3~14^2) we removed the explicit `-x
    objective-c++` flag.  This broke cases with custom source extensions.
    
    Restore the explicit `-x objective-c[++]` flag and put it before the
    `<FLAGS>` placeholder.  The latter will contain the proper `-x
    objective-c[++]-header` value and will override the `-x objective-c[++]`
    value set before.
    
    Fixes: #21234
CMakeOBJCInformation.cmake 6.63 KiB