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
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=<dir>
-
+
")
endif()
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"
)
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 ()
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"
)
find_library(LIBRT rt)
if ( NOT LIBRT )
- message(FATAL_ERROR "librt required. Specicy it by user ")
+ message(SEND_ERROR "librt required.")
endif()
endif()