summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2014-05-06 19:24:02 (GMT)
committerStephen Kelly <steveire@gmail.com>2014-05-07 10:16:13 (GMT)
commit5bb7ce724c8b93d390adb17ec0eb7970520ed114 (patch)
treed5229c6f3b66ff52473486cf83aef0ce98aa17af /Modules
parent64254e7a74455d194092c9dba64e8d5c910a8f21 (diff)
downloadCMake-5bb7ce724c8b93d390adb17ec0eb7970520ed114.zip
CMake-5bb7ce724c8b93d390adb17ec0eb7970520ed114.tar.gz
CMake-5bb7ce724c8b93d390adb17ec0eb7970520ed114.tar.bz2
Project: Use nullary form of main for compile feature tests.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/Internal/FeatureTesting.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Internal/FeatureTesting.cmake b/Modules/Internal/FeatureTesting.cmake
index f4adb35..7bf6d91 100644
--- a/Modules/Internal/FeatureTesting.cmake
+++ b/Modules/Internal/FeatureTesting.cmake
@@ -20,7 +20,7 @@ macro(record_compiler_features lang compile_flags feature_list)
endif()
endforeach()
file(APPEND "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.${lang_lc}"
- "\n};\n\nint main(int, char **) { return 0; }\n")
+ "\n};\n\nint main() { return 0; }\n")
try_compile(CMAKE_${lang}_FEATURE_TEST
${CMAKE_BINARY_DIR} "${CMAKE_BINARY_DIR}/CMakeFiles/feature_tests.${lang_lc}"