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
da90ef78
Unverified
Commit
da90ef78
authored
Mar 05, 2019
by
Dominik Charousset
Committed by
GitHub
Mar 05, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #824
Allow IPO on gcc/clang
parents
d8a529ea
6f9c046e
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
13 additions
and
7 deletions
+13
-7
CMakeLists.txt
CMakeLists.txt
+13
-1
examples/CMakeLists.txt
examples/CMakeLists.txt
+0
-1
libcaf_core/CMakeLists.txt
libcaf_core/CMakeLists.txt
+0
-1
libcaf_io/CMakeLists.txt
libcaf_io/CMakeLists.txt
+0
-1
libcaf_opencl/CMakeLists.txt
libcaf_opencl/CMakeLists.txt
+0
-1
libcaf_openssl/CMakeLists.txt
libcaf_openssl/CMakeLists.txt
+0
-1
tools/CMakeLists.txt
tools/CMakeLists.txt
+0
-1
No files found.
CMakeLists.txt
View file @
da90ef78
...
@@ -263,6 +263,18 @@ if(CAF_MORE_WARNINGS)
...
@@ -263,6 +263,18 @@ if(CAF_MORE_WARNINGS)
string
(
REPLACE
";"
""
WFLAGS_STR
${
WFLAGS
}
)
string
(
REPLACE
";"
""
WFLAGS_STR
${
WFLAGS
}
)
build_string
(
"EXTRA_FLAGS"
"
${
WFLAGS_STR
}
"
)
build_string
(
"EXTRA_FLAGS"
"
${
WFLAGS_STR
}
"
)
endif
()
endif
()
# allow enabling IPO on gcc/clang
if
(
POLICY CMP0069
)
cmake_policy
(
SET CMP0069 NEW
)
else
()
if
(
CMAKE_INTERPROCEDURAL_OPTIMIZATION
)
if
(
CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
build_string
(
"EXTRA_FLAGS"
"-flto"
)
elseif
(
CMAKE_CXX_COMPILER_ID MATCHES
"GNU"
)
build_string
(
"EXTRA_FLAGS"
"-flto -fno-fat-lto-objects"
)
endif
()
endif
()
endif
()
# add -stdlib=libc++ when using Clang if possible
# add -stdlib=libc++ when using Clang if possible
if
(
NOT CAF_NO_AUTO_LIBCPP AND CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
if
(
NOT CAF_NO_AUTO_LIBCPP AND CMAKE_CXX_COMPILER_ID MATCHES
"Clang"
)
...
@@ -315,7 +327,7 @@ if(MINGW)
...
@@ -315,7 +327,7 @@ if(MINGW)
build_string
(
"EXTRA_FLAGS"
"-static"
)
build_string
(
"EXTRA_FLAGS"
"-static"
)
elseif
(
CYGWIN
)
elseif
(
CYGWIN
)
build_string
(
"EXTRA_FLAGS"
"-U__STRICT_ANSI__"
)
build_string
(
"EXTRA_FLAGS"
"-U__STRICT_ANSI__"
)
else
(
)
else
if
(
NOT CAF_BUILD_STATIC_ONLY
)
build_string
(
"EXTRA_FLAGS"
"-fPIC"
)
build_string
(
"EXTRA_FLAGS"
"-fPIC"
)
endif
()
endif
()
if
(
WIN32
)
if
(
WIN32
)
...
...
examples/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 2.8
)
project
(
caf_examples CXX
)
project
(
caf_examples CXX
)
add_custom_target
(
all_examples
)
add_custom_target
(
all_examples
)
...
...
libcaf_core/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
caf_core C CXX
)
project
(
caf_core C CXX
)
# get header files; only needed by CMake generators,
# get header files; only needed by CMake generators,
...
...
libcaf_io/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 2.8.12
)
project
(
caf_io C CXX
)
project
(
caf_io C CXX
)
# get header files; only needed by CMake generators,
# get header files; only needed by CMake generators,
...
...
libcaf_opencl/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 3.1
)
project
(
caf_opencl C CXX
)
project
(
caf_opencl C CXX
)
# get header files; only needed by CMake generators,
# get header files; only needed by CMake generators,
...
...
libcaf_openssl/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 2.8
)
project
(
caf_openssl C CXX
)
project
(
caf_openssl C CXX
)
# get header files; only needed by CMake generators,
# get header files; only needed by CMake generators,
...
...
tools/CMakeLists.txt
View file @
da90ef78
cmake_minimum_required
(
VERSION 2.8
)
project
(
caf_tools CXX
)
project
(
caf_tools CXX
)
add_custom_target
(
all_tools
)
add_custom_target
(
all_tools
)
...
...
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