diff --git a/contrib/platform/win32/CMakeModules/f77_find_ext_symbol_convention.cmake b/contrib/platform/win32/CMakeModules/f77_find_ext_symbol_convention.cmake index 6d66293e40..1848a53b45 100644 --- a/contrib/platform/win32/CMakeModules/f77_find_ext_symbol_convention.cmake +++ b/contrib/platform/win32/CMakeModules/f77_find_ext_symbol_convention.cmake @@ -104,6 +104,7 @@ MACRO(OMPI_F77_FIND_EXT_SYMBOL_CONVENTION) "int main(){${FUNC_NAME}();return(0);}") FILE(WRITE ${CMAKE_BINARY_DIR}${CMAKE_FILES_DIRECTORY}/CMakeTmp/CMakeLists.txt + "PROJECT(conftest_c C)\n" "ADD_EXECUTABLE(conftest_c conftest_c.c)\n" "TARGET_LINK_LIBRARIES(conftest_c ${OUTPUT_OBJ_FILE})\n")