summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-06-24 12:46:12 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-06-24 12:46:12 (GMT)
commitb2d70c1a20caf8011a1cc8b9fe5fb59a614dd959 (patch)
treeea4bfbb83021fe81c54bd857c7dc8183ea4fb1f6 /Modules
parent059be4ba3b8af00f3615726ba8d3ff485e2fcef4 (diff)
parentde4da665d3205afa239749c41513a315c3831f51 (diff)
downloadCMake-b2d70c1a20caf8011a1cc8b9fe5fb59a614dd959.zip
CMake-b2d70c1a20caf8011a1cc8b9fe5fb59a614dd959.tar.gz
CMake-b2d70c1a20caf8011a1cc8b9fe5fb59a614dd959.tar.bz2
Merge topic 'set-sysroot'
de4da66 Use --sysroot when cross compiling.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Compiler/GNU.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Compiler/GNU.cmake b/Modules/Compiler/GNU.cmake
index 504704d..e5e10c3 100644
--- a/Modules/Compiler/GNU.cmake
+++ b/Modules/Compiler/GNU.cmake
@@ -30,6 +30,7 @@ macro(__compiler_gnu lang)
endif()
set(CMAKE_SHARED_LIBRARY_${lang}_FLAGS "-fPIC")
set(CMAKE_SHARED_LIBRARY_CREATE_${lang}_FLAGS "-shared")
+ set(CMAKE_SYSROOT_FLAG "--sysroot=")
# Older versions of gcc (< 4.5) contain a bug causing them to report a missing
# header file as a warning if depfiles are enabled, causing check_header_file