mirror of
https://github.com/reactos/CMake.git
synced 2024-11-28 22:10:32 +00:00
Project: Use nullary form of main for compile feature tests.
This commit is contained in:
parent
64254e7a74
commit
5bb7ce724c
@ -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}"
|
||||
|
Loading…
Reference in New Issue
Block a user