Skip to content

Commit

Permalink
Update CMakeLists.txt fortrantest linker language
Browse files Browse the repository at this point in the history
  • Loading branch information
galabovaa authored Jul 1, 2024
1 parent 7ffaa25 commit 966bf42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion check/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ include(CTest)
if (FORTRAN)
set(CMAKE_Fortran_MODULE_DIRECTORY ${HIGHS_BINARY_DIR}/modules)
add_executable(fortrantest TestFortranAPI.f90)
set_property(TARGET fortrantest PROPERTY LINKER_LANGUAGE Fortran)
if (NOT FAST_BUILD)
target_link_libraries(fortrantest libhighs FortranHighs)
else()
Expand Down Expand Up @@ -321,4 +322,4 @@ if (NOT FAST_BUILD OR ALL_TESTS)
endforeach(setting)
endforeach()

endif()
endif()

0 comments on commit 966bf42

Please sign in to comment.