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
7a7ff6ec
Commit
7a7ff6ec
authored
Jan 24, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Convert CMake LDFLAGS to a list
parent
0404a7ba
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
CMakeLists.txt
CMakeLists.txt
+7
-5
No files found.
CMakeLists.txt
View file @
7a7ff6ec
...
...
@@ -132,7 +132,7 @@ endif()
# respect environment variables #
################################################################################
build_string
(
"LDFLAGS"
"$ENV{LDFLAGS}"
)
set
(
LDFLAGS $ENV{LDFLAGS}
)
################################################################################
# get version of CAF #
...
...
@@ -316,7 +316,7 @@ if(MINGW)
add_definitions
(
-D_WIN32_WINNT=0x0600
)
add_definitions
(
-DWIN32
)
include
(
GenerateExportHeader
)
build_string
(
"LDFLAGS"
"ws2_32 -liphlpapi -lpsapi"
)
list
(
APPEND LDFLAGS -lws2_32 -liphlpapi -lpsapi
)
# build static to avoid runtime dependencies to GCC libraries
build_string
(
"EXTRA_FLAGS"
"-static"
)
elseif
(
CYGWIN
)
...
...
@@ -325,7 +325,7 @@ else()
build_string
(
"EXTRA_FLAGS"
"-fPIC"
)
endif
()
if
(
WIN32
)
build_string
(
"LDFLAGS"
"ws2_32 iphlpapi"
)
list
(
APPEND LDFLAGS ws2_32 iphlpapi
)
endif
()
# iOS support
if
(
CAF_OSX_SYSROOT
)
...
...
@@ -361,7 +361,9 @@ if(NOT CMAKE_BUILD_TYPE)
set
(
CMAKE_BUILD_TYPE RelWithDebInfo
)
endif
()
# needed by subprojects
build_string
(
"LDFLAGS"
"
${
CMAKE_LD_LIBS
}
"
)
if
(
DEFINED CMAKE_LD_LIBS
)
list
(
APPEND
${
CMAKE_LD_LIBS
}
)
endif
()
################################################################################
# configure build_config.hpp header #
...
...
@@ -393,7 +395,7 @@ if(CAF_USE_ASIO)
if
(
Boost_FOUND
)
include_directories
(
${
Boost_INCLUDE_DIRS
}
)
set
(
LD_DIRS
${
LD_DIRS
}
${
Boost_LIBRARIES
}
)
build_string
(
"LDFLAGS"
"
${
Boost_SYSTEM_LIBRARY
}
"
)
list
(
APPEND LDFLAGS
${
Boost_SYSTEM_LIBRARY
}
)
set
(
CAF_USE_ASIO_INT 1
)
else
()
set
(
CAF_USE_ASIO no
)
...
...
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