Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
glslang
Manage
Activity
Members
Plan
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CodeLinaro
public-release-test-restored
platform
external
deqp-deps
glslang
Commits
dfaaf75a
Unverified
Commit
dfaaf75a
authored
6 years ago
by
John Kessenich
Committed by
GitHub
6 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #1652 from gnl21/cmake-fix
Work around a CMake cross-compilation issue
parents
712cd661
aeef0363
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
glslang/OSDependent/Unix/CMakeLists.txt
+3
-1
3 additions, 1 deletion
glslang/OSDependent/Unix/CMakeLists.txt
with
3 additions
and
1 deletion
glslang/OSDependent/Unix/CMakeLists.txt
+
3
−
1
View file @
dfaaf75a
...
...
@@ -4,10 +4,12 @@ set_property(TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON)
# Link pthread
set
(
CMAKE_THREAD_PREFER_PTHREAD ON
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.1.0"
)
if
(
${
CMAKE_VERSION
}
VERSION_LESS
"3.1.0"
OR CMAKE_CROSSCOMPILING
)
# Needed as long as we support CMake 2.8 for Ubuntu 14.04,
# which does not support the recommended Threads::Threads target.
# https://cmake.org/cmake/help/v2.8.12/cmake.html#module:FindThreads
# Also needed when cross-compiling to work around
# https://gitlab.kitware.com/cmake/cmake/issues/16920
find_package
(
Threads
)
target_link_libraries
(
OSDependent
${
CMAKE_THREAD_LIBS_INIT
}
)
else
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment