in your "message" command use "FATAL_ERROR" instead of "STATUS" which
should stop cmake right away.
_________________________________________________
| Mike Jackson - Principal Software Engineer |
| BlueQuartz Software |
| [EMAIL PROTECTED] |
| www.bluequartz.net |
---------------------------------------------------
On Sep 22, 2008, at 8:28 PM, Charlie Cahoon wrote:
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
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake