Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
Lima
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
62
Issues
62
List
Boards
Labels
Service Desk
Milestones
Jira
Jira
Merge Requests
4
Merge Requests
4
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
LimaGroup
Lima
Commits
2807155c
Commit
2807155c
authored
Oct 04, 2018
by
Samuel Debionne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix INTERFACE_LINK_LIBRARIES that had hardcoded paths (pthread, rt)
parent
931bc60c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
8 deletions
+3
-8
CMakeLists.txt
CMakeLists.txt
+3
-8
No files found.
CMakeLists.txt
View file @
2807155c
...
...
@@ -60,6 +60,8 @@ endif()
set
(
CMAKE_MODULE_PATH
${
CMAKE_SOURCE_DIR
}
/cmake
${
CMAKE_MODULE_PATH
}
)
include
(
LimaTools
)
# Import pthread
set
(
CMAKE_THREAD_PREFER_PTHREAD TRUE
)
find_package
(
Threads REQUIRED
)
### Define options
...
...
@@ -263,17 +265,10 @@ target_include_directories(limacore PRIVATE ${extra_includes} ${saving_includes}
target_compile_definitions
(
limacore PUBLIC
${
extra_definitions
}
${
saving_definitions
}
)
# add libraries
target_link_libraries
(
limacore PUBLIC Threads::Threads
)
target_link_libraries
(
limacore PUBLIC processlib
${
saving_libs
}
${
extra_libs
}
)
target_link_libraries
(
limacore PRIVATE
${
saving_private_libs
}
)
if
(
THREADS_HAVE_PTHREAD_ARG
)
target_compile_options
(
limacore PUBLIC
"-pthread"
)
endif
()
if
(
CMAKE_THREAD_LIBS_INIT
)
target_link_libraries
(
limacore PUBLIC
"
${
CMAKE_THREAD_LIBS_INIT
}
"
)
endif
()
if
(
UNIX
)
target_compile_definitions
(
limacore PUBLIC -DHAS_INOTIFY
)
target_link_libraries
(
limacore PUBLIC
"rt"
)
...
...
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