Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
bf246a65
Commit
bf246a65
authored
Jul 13, 2023
by
Robert Schmidt
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/ccache' into integration_2023_w28
parents
cf387a48
25409849
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
CMakeLists.txt
CMakeLists.txt
+19
-0
No files found.
CMakeLists.txt
View file @
bf246a65
...
...
@@ -31,6 +31,25 @@ set (OPENAIR_DIR ${CMAKE_SOURCE_DIR})
include
(
"cmake_targets/macros.cmake"
)
##############################
### CCache: reduce compilation time
##############################
#use ccache if available
option
(
CCACHE_ACTIVE
"CCache"
ON
)
find_program
(
CCACHE_FOUND ccache
)
if
(
CCACHE_FOUND AND CCACHE_ACTIVE
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.4.0"
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_COMPILE
"
${
CCACHE_PROGRAM
}
"
)
message
(
STATUS
"Found ccache in
${
CCACHE_FOUND
}
. Using ccache. CMake < 3.4"
)
else
()
set
(
CMAKE_C_COMPILER_LAUNCHER
"
${
CCACHE_FOUND
}
"
)
set
(
CMAKE_CXX_COMPILER_LAUNCHER
"
${
CCACHE_FOUND
}
"
)
message
(
STATUS
"Found ccache in
${
CCACHE_FOUND
}
. Using ccache. CMake >= 3.4"
)
endif
()
else
()
message
(
STATUS
"Ccache not found. Consider installing it for faster compilation. Command: sudo apt/dnf install ccache"
)
endif
()
# System packages that are required
# We use either the cmake buildin, in ubuntu are in: /usr/share/cmake*/Modules/
# or cmake provide a generic interface to pkg-config that widely used
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment