<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
I am trying to include taglib with cmake, but I get this error:<br>
<br>
CMake Error at taglib/CMakeLists.txt:359 (set_target_properties):<br>
set_target_properties called with incorrect number of arguments.<br>
<br>
How can I fix it?<br>
<br>
This is my cmakelist:<br>
<pre style="background-color:#ffffff;color:#000000;font-family:'Courier New';font-size:9.0pt;">cmake_minimum_required(<span style="color:#008000;font-weight:bold;">VERSION 3.8</span>)<br>project(<span style="color:#008000;font-weight:bold;">MakeMusicList</span>)<br><br>set(<span style="color:#008000;font-weight:bold;">CMAKE_CXX_STANDARD 11</span>)<br><br>set(<span style="color:#008000;font-weight:bold;">SOURCE_FILES main.cpp </span>)<br><br>set(<span style="color:#008000;font-weight:bold;">taglib_include ${CMAKE_CURRENT_SOURCE_DIR}/taglib</span>)<br>add_subdirectory(<span style="color:#008000;font-weight:bold;">taglib</span>)<br>include_directories(<span style="color:#008000;font-weight:bold;">${taglib_include}</span>)<br><br>add_executable(<span style="color:#008000;font-weight:bold;">MakeMusicList main.cpp</span>)<br><br>target_link_libraries(<span style="color:#008000;font-weight:bold;">MakeMusicList taglib</span>)<br>add_dependencies(<span style="color:#008000;font-weight:bold;">MakeMusicList taglib</span>)<br><br><br>And this is from line 359:<br><br>set_target_properties(<span style="color:#008000;font-weight:bold;">tag PROPERTIES<br></span><span style="color:#008000;font-weight:bold;"> VERSION ${TAGLIB_SOVERSION_MAJOR}.${TAGLIB_SOVERSION_MINOR}.${TAGLIB_SOVERSION_PATCH}<br></span><span style="color:#008000;font-weight:bold;"> SOVERSION ${TAGLIB_SOVERSION_MAJOR}<br></span><span style="color:#008000;font-weight:bold;"> INSTALL_NAME_DIR ${LIB_INSTALL_DIR}<br></span><span style="color:#008000;font-weight:bold;"> DEFINE_SYMBOL MAKE_TAGLIB_LIB<br></span><span style="color:#008000;font-weight:bold;"> LINK_INTERFACE_LIBRARIES </span>""<br> <span style="color:#008000;font-weight:bold;">PUBLIC_HEADER </span>"<span style="color:#008000;font-weight:bold;">${tag_HDRS}</span>"<br>)<br><br><br>I copied the taglib folder into my own projects folder.<br><br>Greetings,<br>Stefano<br></pre>
</div>
</body>
</html>