You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
261 B

enable_language(C)
enable_language(CXX)
add_library(static_CXX STATIC func.cxx)
add_executable(LinkLibraries_bad_mix_languages main.c)
target_link_libraries (LinkLibraries_bad_mix_languages PRIVATE $<$<LINK_LANG_AND_ID:C,${CMAKE_C_COMPILER_ID}>:static_CXX>)