Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
glslang
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
glslang
Commits
dfaaf75a
Unverified
Commit
dfaaf75a
authored
Jan 11, 2019
by
John Kessenich
Committed by
GitHub
Jan 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1652 from gnl21/cmake-fix
Work around a CMake cross-compilation issue
parents
712cd661
aeef0363
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletion
+3
-1
CMakeLists.txt
glslang/OSDependent/Unix/CMakeLists.txt
+3
-1
No files found.
glslang/OSDependent/Unix/CMakeLists.txt
View file @
dfaaf75a
...
@@ -4,10 +4,12 @@ set_property(TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON)
...
@@ -4,10 +4,12 @@ set_property(TARGET OSDependent PROPERTY POSITION_INDEPENDENT_CODE ON)
# Link pthread
# Link pthread
set
(
CMAKE_THREAD_PREFER_PTHREAD ON
)
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,
# Needed as long as we support CMake 2.8 for Ubuntu 14.04,
# which does not support the recommended Threads::Threads target.
# which does not support the recommended Threads::Threads target.
# https://cmake.org/cmake/help/v2.8.12/cmake.html#module:FindThreads
# 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
)
find_package
(
Threads
)
target_link_libraries
(
OSDependent
${
CMAKE_THREAD_LIBS_INIT
}
)
target_link_libraries
(
OSDependent
${
CMAKE_THREAD_LIBS_INIT
}
)
else
()
else
()
...
...
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