summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeDetermineCompilerABI.cmake
diff options
context:
space:
mode:
authorBen Boeckel <ben.boeckel@kitware.com>2010-09-16 21:49:37 (GMT)
committerBen Boeckel <ben.boeckel@kitware.com>2010-09-16 21:49:37 (GMT)
commit6d7d449cb1c5d4438034936f3fb8f0e8a6800116 (patch)
treedd9e9f879a0e48465a1e11c7603215d80a38193f /Modules/CMakeDetermineCompilerABI.cmake
parent7740a738e0578e67ec2c408e2244703bdc22c62a (diff)
downloadCMake-6d7d449cb1c5d4438034936f3fb8f0e8a6800116.zip
CMake-6d7d449cb1c5d4438034936f3fb8f0e8a6800116.tar.gz
CMake-6d7d449cb1c5d4438034936f3fb8f0e8a6800116.tar.bz2
Ignore CLI warnings for ABI determination
Diffstat (limited to 'Modules/CMakeDetermineCompilerABI.cmake')
-rw-r--r--Modules/CMakeDetermineCompilerABI.cmake4
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/CMakeDetermineCompilerABI.cmake b/Modules/CMakeDetermineCompilerABI.cmake
index aa21c31..81ec71c 100644
--- a/Modules/CMakeDetermineCompilerABI.cmake
+++ b/Modules/CMakeDetermineCompilerABI.cmake
@@ -32,6 +32,10 @@ FUNCTION(CMAKE_DETERMINE_COMPILER_ABI lang src)
${CMAKE_BINARY_DIR} ${src}
CMAKE_FLAGS "${CMAKE_FLAGS}"
"-DCMAKE_${lang}_STANDARD_LIBRARIES="
+ # We need ignore these warnings because some platforms need
+ # CMAKE_${lang}_STANDARD_LIBRARIES to link properly and we
+ # don't care when we are just determining the ABI.
+ "--no-warn-unused-cli"
OUTPUT_VARIABLE OUTPUT
COPY_FILE "${BIN}"
)