Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
G
glslang
  • Project
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Chen Yisong
  • glslang
  • Repository

Switch branch/tag
  • glslang
  • gtests
  • CMakeLists.txt
Find file
BlameHistoryPermalink
  • Ben Clayton's avatar
    Use CMake's builtin functionality for PCHs · 31cad227
    Ben Clayton authored Jul 07, 2020
    `glslang_pch()` did manual mangling of the compiler flags to enable pre-compiled headers.
    I couldn't get this approach to work with the `MachineIndependent` subdirectory, but fortunately CMake has added first-class support for precompiled headers in 3.16, which does work with subdirectories.
    
    Moved `glslang_pch()` to the other global function declarations.
    
    `glslang_pch()` is a no-op when using CMake earlier than `3.16`.
    
    CMake's PCH implementation does not need the `pch.cpp` files, so just remove them.
    31cad227
CMakeLists.txt 4.47 KB
EditWeb IDE
×

Replace CMakeLists.txt

Attach a file by drag & drop or click to upload


Cancel
A new branch will be created in your fork and a new merge request will be started.