diff options
author | Brad King <brad.king@kitware.com> | 2012-07-09 21:04:48 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-07-09 21:15:35 (GMT) |
commit | d54618f36e8df26906b433577051ca818b0765d2 (patch) | |
tree | 37d0dce8db1edacd258f07c84742b3e77157ad48 /Tests | |
parent | f70f55c064d2b3a761a32b84ca39ee25377300c5 (diff) | |
download | CMake-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.cpp | 2 |
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; } |