diff --git a/check/CMakeLists.txt b/check/CMakeLists.txt index 96474eef14..2ee995d1f5 100644 --- a/check/CMakeLists.txt +++ b/check/CMakeLists.txt @@ -3,6 +3,7 @@ include(CTest) if (FORTRAN) set(CMAKE_Fortran_MODULE_DIRECTORY ${HIGHS_BINARY_DIR}/modules) add_executable(fortrantest TestFortranAPI.f90) + set(CMAKE_Fortran_LINK_EXECUTABLE " -o ") set_property(TARGET fortrantest PROPERTY LINKER_LANGUAGE Fortran) if (NOT FAST_BUILD) target_link_libraries(fortrantest libhighs FortranHighs)