Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
CMake
CMake
Commits
5ba09a75
Commit
5ba09a75
authored
Jun 22, 2017
by
Brad King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'android-unified-headers' into release-3.9
parents
3d992444
5d317930
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
Modules/Platform/Android-Common.cmake
Modules/Platform/Android-Common.cmake
+6
-2
No files found.
Modules/Platform/Android-Common.cmake
View file @
5ba09a75
...
...
@@ -160,9 +160,13 @@ macro(__android_compiler_common lang)
# Do not do this for a standalone toolchain because it is already
# tied to a specific API version.
if
(
CMAKE_ANDROID_NDK
)
list
(
APPEND CMAKE_
${
lang
}
_STANDARD_INCLUDE_DIRECTORIES
"
${
CMAKE_SYSROOT
}
/usr/include"
)
if
(
NOT CMAKE_ANDROID_NDK_DEPRECATED_HEADERS
)
list
(
APPEND CMAKE_
${
lang
}
_STANDARD_INCLUDE_DIRECTORIES
"
${
CMAKE_SYSROOT
}
/usr/include/
${
CMAKE_ANDROID_ARCH_HEADER_TRIPLE
}
"
)
list
(
APPEND CMAKE_
${
lang
}
_STANDARD_INCLUDE_DIRECTORIES
"
${
CMAKE_SYSROOT_COMPILE
}
/usr/include"
"
${
CMAKE_SYSROOT_COMPILE
}
/usr/include/
${
CMAKE_ANDROID_ARCH_HEADER_TRIPLE
}
"
)
else
()
list
(
APPEND CMAKE_
${
lang
}
_STANDARD_INCLUDE_DIRECTORIES
"
${
CMAKE_SYSROOT
}
/usr/include"
)
endif
()
list
(
REMOVE_ITEM CMAKE_
${
lang
}
_IMPLICIT_INCLUDE_DIRECTORIES
"/usr/include"
)
endif
()
...
...
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