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
25409849
Commit
25409849
authored
Jun 26, 2023
by
mir
Committed by
Robert Schmidt
Jul 13, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add CCache to CMakeLists.txt if available to speed up build
parent
c1fbd777
Changes
1
Hide 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 @
25409849
...
@@ -31,6 +31,25 @@ set (OPENAIR_DIR ${CMAKE_SOURCE_DIR})
...
@@ -31,6 +31,25 @@ set (OPENAIR_DIR ${CMAKE_SOURCE_DIR})
include
(
"cmake_targets/macros.cmake"
)
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
# System packages that are required
# We use either the cmake buildin, in ubuntu are in: /usr/share/cmake*/Modules/
# 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
# 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