Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
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
Operations
Operations
Metrics
Environments
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
cpp-libs
Actor Framework
Commits
98f8311f
Commit
98f8311f
authored
Oct 13, 2016
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add ccache build option
parent
ca3a217a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
2 deletions
+21
-2
CMakeLists.txt
CMakeLists.txt
+15
-0
configure
configure
+6
-2
No files found.
CMakeLists.txt
View file @
98f8311f
...
...
@@ -31,6 +31,21 @@ if(DEFINED CAF_QT_PREFIX_PATH)
set
(
CMAKE_PREFIX_PATH
"
${
CAF_QT_PREFIX_PATH
}
"
)
endif
()
################################################################################
# enable ccache if required by user #
################################################################################
if
(
CAF_USE_CCACHE
)
find_program
(
CCACHE_PROGRAM ccache
)
if
(
CCACHE_PROGRAM
)
message
(
STATUS
"Using ccache command:
${
CCACHE_PROGRAM
}
"
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_COMPILE
"
${
CCACHE_PROGRAM
}
"
)
set_property
(
GLOBAL PROPERTY RULE_LAUNCH_LINK
"
${
CCACHE_PROGRAM
}
"
)
else
()
message
(
STATUS
"Unable to find ccache"
)
endif
()
endif
(
CAF_USE_CCACHE
)
################################################################################
# make sure all variables are set to "no" if undefined for summary output #
################################################################################
...
...
configure
View file @
98f8311f
...
...
@@ -49,9 +49,10 @@ Usage: $0 [OPTION]... [VAR=VALUE]...
--more-warnings enables most warnings
--no-compiler-check disable compiler version check
--no-auto-libc++ do not automatically enable libc++ for Clang
--no-exceptions
build CAF without C++ exceptions
--no-exceptions
do not catch exceptions in CAF
--force-no-exceptions build CAF with '-fno-exceptions'
--warnings-as-errors enables -Werror
--warnings-as-errors build with '-Werror'
--with-ccache use ccache to improve build performance
Installation Directories:
--prefix=PREFIX installation directory [/usr/local]
...
...
@@ -255,6 +256,9 @@ while [ $# -ne 0 ]; do
--warnings-as-errors
)
append_cache_entry CAF_CXX_WARNINGS_AS_ERRORS BOOL
yes
;;
--with-ccache
)
append_cache_entry CAF_USE_CCACHE BOOL
yes
;;
--sysroot
=
*
)
append_cache_entry CAF_OSX_SYSROOT PATH
"
$optarg
"
;;
...
...
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