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
7c4535d6
Commit
7c4535d6
authored
Aug 28, 2019
by
Tobias Mayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Default to static linking on WIN32
parent
3fcb99f1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
13 deletions
+12
-13
CMakeLists.txt
CMakeLists.txt
+12
-13
No files found.
CMakeLists.txt
View file @
7c4535d6
...
...
@@ -12,7 +12,17 @@ else()
endif
()
unset
(
_parent
)
option
(
BUILD_SHARED_LIBS
""
ON
)
set
(
CAF_LINKAGE_DEFAULT_SHARED ON
)
if
(
WIN32
)
# Shared libs are currently not supported on Windows.
set
(
CAF_LINKAGE_DEFAULT_SHARED OFF
)
endif
()
option
(
BUILD_SHARED_LIBS
""
${
CAF_LINKAGE_DEFAULT_SHARED
}
)
if
(
BUILD_SHARED_LIBS
)
set
(
LINK_TYPE
"shared"
)
else
()
set
(
LINK_TYPE
"static"
)
endif
()
set
(
CMAKE_INSTALL_CMAKEBASEDIR
"lib/cmake"
CACHE PATH
"Base directory for installing cmake specific artifacts"
)
...
...
@@ -26,12 +36,6 @@ if(APPLE AND NOT DEFINED CMAKE_MACOSX_RPATH)
set
(
CMAKE_MACOSX_RPATH true
)
endif
()
# Shared libs are currently not supported on Windows.
if
(
WIN32 AND NOT CAF_BUILD_STATIC_ONLY
)
message
(
STATUS
"CAF currently only supports static-only builds on Windows"
)
set
(
CAF_BUILD_STATIC_ONLY yes
)
endif
()
if
(
CAF_BUILD_STATIC_RUNTIME
)
set
(
flags_configs
CMAKE_CXX_FLAGS
...
...
@@ -128,8 +132,6 @@ pretty_yes("CAF_FORCE_NO_EXCEPTIONS")
pretty_no
(
"CAF_ENABLE_RUNTIME_CHECKS"
)
pretty_no
(
"CAF_NO_MEM_MANAGEMENT"
)
pretty_no
(
"CAF_NO_EXCEPTIONS"
)
pretty_no
(
"CAF_BUILD_STATIC_ONLY"
)
pretty_no
(
"CAF_BUILD_STATIC"
)
pretty_no
(
"CAF_NO_OPENCL"
)
pretty_no
(
"CAF_NO_OPENSSL"
)
pretty_no
(
"CAF_NO_PYTHON"
)
...
...
@@ -343,8 +345,6 @@ if(MINGW)
build_string
(
"EXTRA_FLAGS"
"-static"
)
elseif
(
CYGWIN
)
build_string
(
"EXTRA_FLAGS"
"-U__STRICT_ANSI__"
)
elseif
(
NOT CAF_BUILD_STATIC_ONLY
)
build_string
(
"EXTRA_FLAGS"
"-fPIC"
)
endif
()
if
(
WIN32
)
list
(
APPEND CAF_EXTRA_LDFLAGS ws2_32 iphlpapi
)
...
...
@@ -735,8 +735,7 @@ if(NOT CAF_NO_SUMMARY)
"
\n
CAF version:
${
CAF_VERSION
}
"
"
\n
"
"
\n
Build type:
${
CMAKE_BUILD_TYPE
}
"
"
\n
Build static:
${
CAF_BUILD_STATIC
}
"
"
\n
Build static only:
${
CAF_BUILD_STATIC_ONLY
}
"
"
\n
Link type:
${
LINK_TYPE
}
"
"
\n
Build static runtime:
${
CAF_BUILD_STATIC_RUNTIME
}
"
"
\n
Runtime checks:
${
CAF_ENABLE_RUNTIME_CHECKS
}
"
"
\n
Log level:
${
CAF_LOG_LEVEL
}
"
...
...
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