From 226848a2a10c2b56a4385417a8b2e3fb048fd952 Mon Sep 17 00:00:00 2001 From: Martin Storsjo Date: Fri, 6 Oct 2023 14:01:15 +0300 Subject: cmake: Link the library as C, not C++ This matches how it is done in the autotools build. We try not to rely on the C++ standard library, and this makes sure that this property is maintained (even if developing with CMake). --- CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 4db8c7e..8be9d64 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -490,7 +490,8 @@ set_target_properties(fdk-aac PROPERTIES VERSION 2.0.2 SOVERSION 2 MACHO_COMPATIBILITY_VERSION 3.0.0 - MACHO_CURRENT_VERSION 3.2.0) + MACHO_CURRENT_VERSION 3.2.0 + LINKER_LANGUAGE C) ### Some compiler options from Makefile.am if(MSVC) -- cgit v1.2.3