Skip to content

Commit

Permalink
LINKER_LANGUAGE
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed May 23, 2024
1 parent ede8140 commit e3ee8d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,7 @@ if (USE_FORTRAN)
if (CMAKE_Fortran_COMPILER_ID MATCHES "GNU")
target_compile_options(${name}_fort PRIVATE $<$<COMPILE_LANGUAGE:Fortran>:-O2 --std=legacy>)
endif ()
set_property(TARGET ${name}_fort PROPERTY LINKER_LANGUAGE Fortran)

python_add_library(${name} MODULE
${CMAKE_CURRENT_BINARY_DIR}/${name}module.c
Expand Down

0 comments on commit e3ee8d6

Please sign in to comment.