Thanks for feedback :

> IF (${ARMADILLO} STREQUAL “ARMADILLO-NOTFOUND”)
>   # do what you want
> ENDIF ()
​
I tried this way of writing :

IF (${ARMADILLO} STREQUAL "ARMADILLO-NOTFOUND")
    include(ExternalProject)
    ExternalProject_Add(armadillo
    URL https://github.com/lsolanka/armadillo/archive/master.zip
     PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo-latest)
ENDIF()

and

IF (ARMADILLO STREQUAL ARMADILLO-NOTFOUND)
   include(ExternalProject)
   MESSAGE(STATUS "Trying to install armadillo...")
    ExternalProject_Add(armadillo
    URL https://github.com/lsolanka/armadillo/archive/master.zip
    PREFIX ${CMAKE_CURRENT_BINARY_DIR}/armadillo-latest)
ENDIF()


​But both of them gave me an error :
--












* Armadillo Library location: ARMADILLO-NOTFOUND-- Trying to install
armadillo...-- Sndfile Library location: SNDFILE-NOTFOUND-- Trying to
install libsndfile...CMake Error: The following variables are used in this
project, but they are set to NOTFOUND.Please set them or make sure they are
set and tested correctly in the CMake files:ARMADILLO    linked by target
"tsm" in directory /home/computing9/TSM_cmakeSNDFILE    linked by target
"tsm" in directory /home/computing9/TSM_cmake-- Configuring incomplete,
errors occurred!See also
"/home/computing9/TSM_cmake/build/CMakeFiles/CMakeOutput.log".*
ExternalProject_add command is not instlling the mentioned libraries from
the specifies link .
Any suggestions ?


Regards
Aishwarya Selvaraj
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake

Reply via email to