Commit 07d7d813 authored by Andinet enquobahrie's avatar Andinet enquobahrie

PERF: when iMSTK used by external application, useful error message

generated when necessary libraries are not found
parent fc34029b
......@@ -134,6 +134,9 @@ if(WIN32)
NAMES
setupapi
)
if(NOT HIDAPI_LIBRARY)
message(FATAL_ERROR "hidapi library not found")
endif()
elseif(APPLE)
find_library(MACHID_CoreFoundation_LIBRARY CoreFoundation)
find_library(MACHID_IOKit_LIBRARY IOKit)
......
......@@ -5,6 +5,11 @@ if(WIN32)
find_library(DbgHelp_LIBRARY NAMES DbgHelp)
endif()
if(NOT DbgHelp_LIBRARY)
message(FATAL_ERROR "DbgHelp library not found")
endif()
#-----------------------------------------------------------------------------
# Find path
#-----------------------------------------------------------------------------
......@@ -14,7 +19,6 @@ find_path(g3log_INCLUDE_DIR
g3log/logworker.hpp
)
mark_as_advanced(g3log_INCLUDE_DIR)
#message(STATUS "g3log_INCLUDE_DIR : ${g3log_INCLUDE_DIR}")
#-----------------------------------------------------------------------------
# Find library
......@@ -25,7 +29,6 @@ find_library(g3log_LIBRARY
g3logger
)
mark_as_advanced(g3log_LIBRARY)
#message(STATUS "g3log_LIBRARY : ${g3log_LIBRARY}")
set(g3log_LIBRARIES ${g3log_LIBRARY} ${DbgHelp_LIBRARY})
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment