summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-07-09 21:04:48 (GMT)
committerBrad King <brad.king@kitware.com>2012-07-09 21:15:35 (GMT)
commitd54618f36e8df26906b433577051ca818b0765d2 (patch)
tree37d0dce8db1edacd258f07c84742b3e77157ad48 /Tests
parentf70f55c064d2b3a761a32b84ca39ee25377300c5 (diff)
downloadCMake-d54618f36e8df26906b433577051ca818b0765d2.zip
CMake-d54618f36e8df26906b433577051ca818b0765d2.tar.gz
CMake-d54618f36e8df26906b433577051ca818b0765d2.tar.bz2
Tests/CustomCommand: Do not use 'main' in a library
Otherwise when linking 'CustomCommand' some linkers report ld: 0711-224 WARNING: Duplicate symbol: .main Suggested-by: Daniel R. Gomez <gomez@teragram.com>
Diffstat (limited to 'Tests')
-rw-r--r--Tests/CustomCommand/GeneratedHeader/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CustomCommand/GeneratedHeader/main.cpp b/Tests/CustomCommand/GeneratedHeader/main.cpp
index 1b3e85f..0b43ffe 100644
--- a/Tests/CustomCommand/GeneratedHeader/main.cpp
+++ b/Tests/CustomCommand/GeneratedHeader/main.cpp
@@ -1,5 +1,5 @@
#include "generated.h"
-int main()
+int mainGeneratedHeader()
{
return 0;
}