<div dir="ltr">

<p class=""><span style lang="EN-US">Hi </span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US">I setup
mixed project C and CXX for generic platform TI dsp.</span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US">I build
static library. Library is not build because AR command is empty in link.txt.</span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US">It is
working when I not mix C/CXX.</span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US">What is
wrong?</span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US"> </span></p>

<p class=""><span style lang="EN-US">Toolchan
file:</span></p>

<p class="">set(CMAKE_SYSTEM_NAME &quot;Generic&quot;)</p>

<p class="">SET(CMAKE_SYSTEM_PROCESSOR &quot;tidsp_mv64&quot;)</p>

<p class="">set(TIDSP_TYPE &quot;mv64+&quot;)</p>

<p class=""> </p>

<p class=""># specify the cross compiler</p>

<p class="">SET(CMAKE_C_COMPILER<span style>  
</span>/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/cl6x)</p>

<p class="">SET(CMAKE_CXX_COMPILER
/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/cl6x)</p>

<p class="">SET(CMAKE_AR<span style>          
</span>/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/ar6x)</p>

<p class="">SET(CMAKE_STRIP<span style>       
</span>/usr/local/share/cross-compilers/TMS320C6x/6.1.13/bin/strip6x)</p>

<p class="">SET(CMAKE_RANLIB<span style>      
</span>&quot;&quot;)</p>

<p class=""> </p>

<p class=""># where is the target environment</p>

<p class="">SET(CMAKE_FIND_ROOT_PATH<span style> 
</span>/usr/local/share/cross-compilers/TMS320C6x/6.1.13)</p>

<p class=""> </p>

<p class=""># search for programs in the build host directories</p>

<p class="">SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)</p>

<p class=""># for libraries and headers in the target directories</p>

<p class="">SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)</p>

<p class="">SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)</p>

<p class=""> </p>

<p class="">include_directories(/usr/local/share/cross-compilers/TMS320C6x/6.1.13/include)</p>

<p class="">link_directories(/usr/local/share/cross-compilers/TMS320C6x/6.1.13/lib)</p>

</div>