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
f9ec7642
Commit
f9ec7642
authored
Dec 14, 2012
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #85 from mavam/topic/build-harness
Fix a potential linker problem.
parents
4537ccbf
55c77841
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
CMakeLists.txt
CMakeLists.txt
+7
-0
No files found.
CMakeLists.txt
View file @
f9ec7642
...
...
@@ -167,6 +167,13 @@ else (DISABLE_CONTEXT_SWITCHING)
if
(
NOT Boost_FOUND
)
set
(
DISABLE_CONTEXT_SWITCHING true
)
else
(
NOT Boost_FOUND
)
# This hack fixes a problem when the linker search path is the same as
# the one provided by the compiler. In this case, CMake replaces the absolute
# path (e.g., /path/to/lib.so) with -l<lib>, which may cause it to pick up the wrong
# library. So when this replacement happens, we ensure that the right
# library gets picked by adding a -L directive for the affected libraries
# (which is just Boost Context here).
set
(
CMAKE_EXE_LINKER_FLAGS -L
${
Boost_LIBRARY_DIRS
}
)
set
(
INCLUDE_DIRS
${
INCLUDE_DIRS
}
${
Boost_INCLUDE_DIRS
}
)
set
(
LD_DIRS
${
LD_DIRS
}
${
Boost_LIBRARY_DIRS
}
)
set
(
LD_FLAGS
${
LD_FLAGS
}
${
Boost_CONTEXT_LIBRARY
}
)
...
...
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