From: Russ Combs (rucombs) Date: Fri, 25 Mar 2016 19:23:20 +0000 (-0400) Subject: Merge pull request #369 in SNORT/snort3 from ~JOCORNET/snort3:cmake_fixes to master X-Git-Tag: 3.0.0-233~506 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ae83aec4087c1b8e898798814aa25d3bbfb54ada;p=thirdparty%2Fsnort3.git Merge pull request #369 in SNORT/snort3 from ~JOCORNET/snort3:cmake_fixes to master Squashed commit of the following: commit d5735f1a87693f58ed595ce56476da6a0640d18d Author: Joel Cornett Date: Fri Mar 25 13:36:31 2016 -0400 changed FATAL_ERROR -> SEND_ERROR --- diff --git a/cmake/FindDAQ.cmake b/cmake/FindDAQ.cmake index aafc976c5..275dd0b17 100644 --- a/cmake/FindDAQ.cmake +++ b/cmake/FindDAQ.cmake @@ -20,8 +20,6 @@ set (ERROR_MESSAGE also set the DAQ_DIR environment variablet to the daqs root installation directory\n\n" ) - - find_path(DAQ_INCLUDE_DIR NAMES daq.h HINTS ENV DAQ_DIR @@ -37,15 +35,15 @@ if (ENABLE_STATIC_DAQ) RESULT_VARIABLE result OUTPUT_STRIP_TRAILING_WHITESPACE ) - + # This will be false if the exit status was 0 and true if the binary was not found if (result) - message(FATAL_ERROR " + message(SEND_ERROR " ERROR! cannot find the DAQs static libraries! make sure the binary file `daq-modules-config` is in your path, or specific the daqs path with the --with-daq-root= - + ") endif() diff --git a/cmake/FindHWLOC.cmake b/cmake/FindHWLOC.cmake index cdf01a2c6..88ed79bf5 100644 --- a/cmake/FindHWLOC.cmake +++ b/cmake/FindHWLOC.cmake @@ -3,7 +3,7 @@ find_package(PkgConfig) pkg_check_modules(PC_HWLOC hwloc) if (NOT PC_HWLOC_FOUND) - message(FATAL_ERROR + message(SEND_ERROR "\n\tERROR! hwloc library not found.\n" "\tGet it from https://www.open-mpi.org/projects/hwloc/\n" ) diff --git a/cmake/FindPCAP.cmake b/cmake/FindPCAP.cmake index bccf42492..5ea44ffc4 100644 --- a/cmake/FindPCAP.cmake +++ b/cmake/FindPCAP.cmake @@ -70,7 +70,7 @@ if (NOT PCAP_LINKS_SOLO) set(PCAP_LIBRARIES ${_tmp} CACHE STRING "Libraries needed to link against libpcap" FORCE) else () - message(FATAL_ERROR "Couldn't determine how to link against libpcap") + message(SEND_ERROR "Couldn't determine how to link against libpcap") endif () endif () diff --git a/cmake/FindPCRE.cmake b/cmake/FindPCRE.cmake index df626358a..199e9131e 100644 --- a/cmake/FindPCRE.cmake +++ b/cmake/FindPCRE.cmake @@ -48,7 +48,7 @@ if(NOT VALID_PCRE_VERSION) unset(PCRE_FOUND CACHE) unset(PCRE_INCLUDE_DIR CACHE) unset(PCRE_LIBRARIES CACHE) - message(FATAL_ERROR + message(SEND_ERROR "\nERROR! Libpcre library version >= 6.0 not found." " Get it from http://www.pcre.org\n\n" ) diff --git a/src/catch/CMakeLists.txt b/src/catch/CMakeLists.txt index 5a89a629b..8e5290e7c 100644 --- a/src/catch/CMakeLists.txt +++ b/src/catch/CMakeLists.txt @@ -8,7 +8,7 @@ if ( LINUX ) find_library(LIBRT rt) if ( NOT LIBRT ) - message(FATAL_ERROR "librt required. Specicy it by user ") + message(SEND_ERROR "librt required.") endif() endif()