<div dir="ltr"><div class="gmail_default" style="color:rgb(0,0,0)">Thanks for feedback :<br><br></div><div class="gmail_extra">> IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”)<br>>   # do what you want<br>> ENDIF ()<br><div class="gmail_default" style="color:rgb(0,0,0)">​<br></div><div class="gmail_default" style="color:rgb(0,0,0)">I tried this way of writing :<br><br>IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND")<br>    include(ExternalProject)<br>    ExternalProject_Add(armadillo<br>    URL <a href="https://github.com/lsolanka/armadillo/archive/master.zip">https://github.com/lsolanka/armadillo/archive/master.zip</a><br>     PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo-latest)<br>ENDIF()<br><br></div><div class="gmail_default" style="color:rgb(0,0,0)">and<br><br>IF (ARMADILLO STREQUAL ARMADILLO-NOTFOUND)<br>   include(ExternalProject)<br>   MESSAGE(STATUS "Trying to install armadillo...")<br>    ExternalProject_Add(armadillo<br>    URL <a href="https://github.com/lsolanka/armadillo/archive/master.zip">https://github.com/lsolanka/armadillo/archive/master.zip</a><br>    PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo-latest)<br>ENDIF()<br></div><br><br><div style="color:rgb(0,0,0)" class="gmail_default">​But both of them gave me an error :<br>--<b> Armadillo Library location: ARMADILLO-NOTFOUND<br>-- Trying to install armadillo...<br>-- Sndfile Library location: SNDFILE-NOTFOUND<br>-- Trying to install libsndfile...<br>CMake Error: The following variables are used in this project, but they are set to NOTFOUND.<br>Please set them or make sure they are set and tested correctly in the CMake files:<br>ARMADILLO<br>    linked by target "tsm" in directory /home/computing9/TSM_cmake<br>SNDFILE<br>    linked by target "tsm" in directory /home/computing9/TSM_cmake<br>-- Configuring incomplete, errors occurred!<br>See also "/home/computing9/TSM_cmake/build/CMakeFiles/CMakeOutput.log".<br><br></b><br></div><div style="color:rgb(0,0,0)" class="gmail_default">ExternalProject_add command is not instlling the mentioned libraries from the specifies link .</div><div style="color:rgb(0,0,0)" class="gmail_default">Any suggestions ?<br><br><br></div><div style="color:rgb(0,0,0)" class="gmail_default">Regards<br></div><div class="gmail_signature"><div dir="ltr">Aishwarya Selvaraj</div></div>
</div></div>