From 94ad96e0eac2ed38f2b38754e375f311326cafd2 Mon Sep 17 00:00:00 2001 From: derselbst Date: Tue, 2 Jan 2024 23:55:52 +0100 Subject: [PATCH] Fix 'The target name MPG123::libmpg123 is reserved or not valid' --- cmake_admin/Findmpg123.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake_admin/Findmpg123.cmake b/cmake_admin/Findmpg123.cmake index 76e041275..3cb351679 100644 --- a/cmake_admin/Findmpg123.cmake +++ b/cmake_admin/Findmpg123.cmake @@ -92,7 +92,7 @@ find_package_handle_standard_args( # Create the targets foreach(_component libmpg123 libout123 libsyn123) if(mpg123_${_component}_FOUND AND NOT TARGET MPG123::${_component}) - add_library(MPG123::${_component}) + add_library(MPG123::${_component} UNKNOWN IMPORTED) set_target_properties( MPG123::${_component} PROPERTIES IMPORTED_LOCATION "${mpg123_${_component}_LIBRARY}"