summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-11 22:21:13 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-11 22:23:00 (GMT)
commitdf4615e3380cda2bf29d3dfdcfd26b020a64e707 (patch)
treef784b4c8d055901495edbf47e3657a2527e73b8c /Modules/GenerateExportHeader.cmake
parent78a6e1c1224bbeb92f44dd681cc914030bbf8c82 (diff)
downloadCMake-df4615e3380cda2bf29d3dfdcfd26b020a64e707.zip
CMake-df4615e3380cda2bf29d3dfdcfd26b020a64e707.tar.gz
CMake-df4615e3380cda2bf29d3dfdcfd26b020a64e707.tar.bz2
Add the COMPILER_HAS_DEPRECATED only if it has a declspec variant
_check_cxx_compiler_attribute does it in the alternative.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake3
1 files changed, 1 insertions, 2 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index 05f36f3..c833a01 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -160,11 +160,10 @@ endmacro()
macro(_test_compiler_has_deprecated)
_check_cxx_compiler_attribute("__declspec(deprecated)" COMPILER_HAS_DEPRECATED_DECLSPEC)
if(COMPILER_HAS_DEPRECATED_DECLSPEC)
- set(COMPILER_HAS_DEPRECATED ${COMPILER_HAS_DEPRECATED_DECLSPEC})
+ set(COMPILER_HAS_DEPRECATED "${COMPILER_HAS_DEPRECATED_DECLSPEC}" CACHE INTERNAL "Compiler support for a deprecated attribute")
else()
_check_cxx_compiler_attribute("__attribute__((__deprecated__))" COMPILER_HAS_DEPRECATED)
endif()
- set(COMPILER_HAS_DEPRECATED "${COMPILER_HAS_DEPRECATED}" CACHE INTERNAL "Compiler support for a deprecated attribute")
endmacro()
set(myDir ${CMAKE_CURRENT_LIST_DIR})