diff --git a/modules/find/FindSIMGRID.cmake b/modules/find/FindSIMGRID.cmake index 27948e18fa300c66b000ec333fdbb5cfcf85c349..9ae2072a0b63eaa8fb98ce716c69978624af64ba 100644 --- a/modules/find/FindSIMGRID.cmake +++ b/modules/find/FindSIMGRID.cmake @@ -111,7 +111,7 @@ if(SIMGRID_FOUND AND SIMGRID_LIBRARIES) # test link unset(SIMGRID_WORKS CACHE) include(CheckFunctionExists) - check_function_exists(MSG_main SIMGRID_WORKS) + check_function_exists(simgrid_init SIMGRID_WORKS) mark_as_advanced(SIMGRID_WORKS) if(SIMGRID_WORKS) @@ -148,4 +148,4 @@ find_package_handle_standard_args(SIMGRID DEFAULT_MSG # Add imported targe if (SIMGRID_FOUND) morse_create_imported_target(SIMGRID) -endif() \ No newline at end of file +endif()