summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-03-02 13:36:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-03-02 13:36:29 (GMT)
commitb3381c5c79e2b7ef57a1d035e73d37ec2ee0aa45 (patch)
tree4e8eecf5b08ca4e3b27c9c35965514201ffd470a /Modules/GenerateExportHeader.cmake
parente2055b172eb4ed40893bc2e110a5640d078eef22 (diff)
parenta7631fc4e026f2e330b10eae73f473f240c3d0c1 (diff)
downloadCMake-b3381c5c79e2b7ef57a1d035e73d37ec2ee0aa45.zip
CMake-b3381c5c79e2b7ef57a1d035e73d37ec2ee0aa45.tar.gz
CMake-b3381c5c79e2b7ef57a1d035e73d37ec2ee0aa45.tar.bz2
Merge topic 'modules-check-ARGC'
a7631fc4 Modules: Check for ARGC before using ARGV#
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 0c6256c..aab29ea 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -395,7 +395,7 @@ function(add_compiler_export_flags)
# Either return the extra flags needed in the supplied argument, or to the
# CMAKE_CXX_FLAGS if no argument is supplied.
- if(ARGV0)
+ if(ARGC GREATER 0)
set(${ARGV0} "${EXTRA_FLAGS}" PARENT_SCOPE)
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${EXTRA_FLAGS}" PARENT_SCOPE)