[CMake] Stop running CMake if dependencies are missing
Charlie Cahoon
cmcahoon at gmail.com
Mon Sep 22 20:28:58 EDT 2008
Hello,
I am using CMake to search for dependencies using `find_library` and
`find_path` and when dependencies are missing I print a message out.
Output:
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Assertion failed: Unable to find headers: pcap
-- ERROR: THERE ARE DEPENDENCIES MISSING
-- Configuring done
-- Generating done
-- Build files have been written to: /home/user/project
The commands work properly, but is there a way to stop the creation of a
makefile if the dependencies are missing?
Thank you, and kind regards,
Charles
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20080922/3072246e/attachment-0001.htm>
More information about the CMake
mailing list