summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorMarcus D. Hanwell <marcus.hanwell@kitware.com>2011-09-19 18:55:19 (GMT)
committerMarcus D. Hanwell <marcus.hanwell@kitware.com>2011-09-19 18:55:19 (GMT)
commit2d1acfe359852836f3096da0d3262d558ee383d3 (patch)
treef4254361318d2dc0c40579620144791255b63eb4 /Modules/GenerateExportHeader.cmake
parentd6795685ae25f1a9d0d7cda02d639ce8b402f9f9 (diff)
downloadCMake-2d1acfe359852836f3096da0d3262d558ee383d3.zip
CMake-2d1acfe359852836f3096da0d3262d558ee383d3.tar.gz
CMake-2d1acfe359852836f3096da0d3262d558ee383d3.tar.bz2
Don't warn when nothing to do in visibility function.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index e1ce16d..f2eaf8c 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -353,7 +353,7 @@ function(add_compiler_export_flags)
_test_compiler_has_deprecated()
if(NOT (USE_COMPILER_HIDDEN_VISIBILITY AND COMPILER_HAS_HIDDEN_VISIBILITY))
- message(WARNING "Compiler doesn't have hidden visibility")
+ # Just return if there are no flags to add.
return()
endif()