Skip to content

Commit 349ef7f

Browse files
committed
Fix include path and FATAL -> FATAL_ERROR
1 parent a5e1dec commit 349ef7f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,17 @@ endif (TELLDUSCORE_INCLUDE)
569569

570570
# Under FreeBSD sys/sysinfo?h exist using a separate pkg
571571
IF(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
572-
find_path(SYSINFO_INCLUDE NAMES sysinfo.h)
572+
find_path(SYSINFO_INCLUDE NAMES sys/sysinfo.h)
573573
if (SYSINFO_INCLUDE)
574574
message(STATUS "Found sysinfo.h at : ${SYSINFO_INCLUDE}")
575575
find_library(SYSINFO_LIBRARIES NAMES libsysinfo.so)
576576
if(SYSINFO_LIBRARIES)
577577
message(STATUS "Found libsysinfo.so at : ${SYSINFO_LIBRARIES}")
578578
else(SYSINFO_LIBRARIES)
579-
message(FATAL "Cannot find libsysinfo, please install it with 'pkg install libsysinfo'")
579+
message(FATAL_ERROR "Cannot find libsysinfo, please install it with 'pkg install libsysinfo'")
580580
endif(SYSINFO_LIBRARIES)
581581
else()
582-
message(FATAL "Cannot find sysinfo.h, please install it with 'pkg install libsysinfo'")
582+
message(FATAL_ERROR "Cannot find sysinfo.h, please install it with 'pkg install libsysinfo'")
583583
endif()
584584
ENDIF()
585585

0 commit comments

Comments
 (0)