diff options
author | Brad King <brad.king@kitware.com> | 2018-10-08 15:10:12 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2018-10-08 15:10:19 (GMT) |
commit | 20e14baae79b5fd1f75aecbb167a3642f2c532d8 (patch) | |
tree | 6c67fc025edf2f45a812d99d0e8f75ea2642a83a /Modules/Platform | |
parent | e3666e8ffeeda24dcee69a27942678927e895fbc (diff) | |
parent | 66f49d1f9ae46d928df0509e96215cdd28db4dcb (diff) | |
download | CMake-20e14baae79b5fd1f75aecbb167a3642f2c532d8.zip CMake-20e14baae79b5fd1f75aecbb167a3642f2c532d8.tar.gz CMake-20e14baae79b5fd1f75aecbb167a3642f2c532d8.tar.bz2 |
Merge topic 'autogen-moc-predef-cross-compile'
66f49d1f9a Android: Add clang --target= flag to compiler predefines command
39534c58c5 Autogen: Add clang --target= flag to compiler predefines command
Acked-by: Kitware Robot <kwrobot@kitware.com>
Acked-by: André Klitzing <aklitzing@gmail.com>
Merge-request: !2452
Diffstat (limited to 'Modules/Platform')
-rw-r--r-- | Modules/Platform/Android-Clang.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Android-Clang.cmake b/Modules/Platform/Android-Clang.cmake index f739ab1..9ed1e01 100644 --- a/Modules/Platform/Android-Clang.cmake +++ b/Modules/Platform/Android-Clang.cmake @@ -40,5 +40,6 @@ macro(__android_compiler_clang lang) endif() if(NOT CMAKE_${lang}_COMPILER_TARGET) set(CMAKE_${lang}_COMPILER_TARGET "${_ANDROID_ABI_CLANG_TARGET}") + list(APPEND CMAKE_${lang}_COMPILER_PREDEFINES_COMMAND "--target=${CMAKE_${lang}_COMPILER_TARGET}") endif() endmacro() |