Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
dynamic
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MostafaMollaali
dynamic
Commits
d89b3a61
Commit
d89b3a61
authored
6 years ago
by
Lars Bilke
Browse files
Options
Downloads
Patches
Plain Diff
[CMake] Disable PCH when using clcache.
parent
f6864686
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scripts/cmake/CompilerSetup.cmake
+6
-1
6 additions, 1 deletion
scripts/cmake/CompilerSetup.cmake
with
6 additions
and
1 deletion
scripts/cmake/CompilerSetup.cmake
+
6
−
1
View file @
d89b3a61
...
...
@@ -3,13 +3,18 @@ set(CMAKE_CXX_STANDARD 17)
set
(
CMAKE_CXX_STANDARD_REQUIRED ON
)
set
(
CMAKE_CXX_EXTENSIONS OFF
)
if
(
MSVC_VERSION LESS 1910 OR APPLE
)
# < VS 15.0; macOS: https://github.com/sakra/cotire/issues/139
# < VS 15.0; macOS: https://github.com/sakra/cotire/issues/139
if
(
MSVC_VERSION LESS 1910 OR APPLE OR
${
CMAKE_CXX_COMPILER
}
MATCHES
"clcache"
)
set
(
OGS_USE_PCH OFF CACHE INTERNAL
""
)
endif
()
if
(
OGS_USE_PCH
)
include
(
cotire
)
# compile time reducer
endif
()
if
(
${
CMAKE_CXX_COMPILER
}
MATCHES
"clcache"
AND CMAKE_BUILD_TYPE STREQUAL
"Debug"
)
message
(
WARNING
"clcache does not cache in Debug config!"
)
endif
()
# Set compiler helper variables
if
(
${
CMAKE_CXX_COMPILER_ID
}
MATCHES
"Clang"
)
set
(
COMPILER_IS_CLANG TRUE CACHE INTERNAL
""
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment