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 [email protected] http://www.cmake.org/mailman/listinfo/cmake
