Skip to content

Commit

Permalink
CMake FMU export: Fix ref to cxx compiler (#11004)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschueller committed Jul 25, 2023
1 parent e29b5e1 commit 48ea6c4
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -115,7 +115,7 @@ add_library(${FMU_NAME}
if(NOT ${CMAKE_VERSION} VERSION_LESS "3.13")
if(CMAKE_C_COMPILER_ID STREQUAL "Clang" OR CMAKE_C_COMPILER_ID STREQUAL "AppleClang") # Using Clang
target_link_options(${FMU_NAME} PRIVATE "LINKER:SHELL:-undefined,error")
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") # Using GCC
elseif(CMAKE_C_COMPILER_ID STREQUAL "GNU") # Using GCC
target_link_options(${FMU_NAME} PRIVATE "LINKER:SHELL:--no-undefined")
endif()
endif()
Expand Down

0 comments on commit 48ea6c4

Please sign in to comment.