diff --git a/cmake/build_helpers.cmake b/cmake/build_helpers.cmake index df341da60bb..eabbcf867dc 100644 --- a/cmake/build_helpers.cmake +++ b/cmake/build_helpers.cmake @@ -45,7 +45,7 @@ function(ginkgo_compile_features name) if (GINKGO_CHECK_CIRCULAR_DEPS) target_link_libraries("${name}" PRIVATE "${GINKGO_CIRCULAR_DEPS_FLAGS}") endif() - target_link_options("${name}" PRIVATE "-Wl,--allow-shlib-undefined") + target_link_options("${name}" PRIVATE "-Wl,-fallow-shlib-undefined") set_target_properties("${name}" PROPERTIES POSITION_INDEPENDENT_CODE ON) endfunction()