Browse Source

FindDevIL: fail properly when library is not found.

Due to a mismatch between module name and name passed to FPHSA() the
macro printed an error message but the error was not caught up by CMake.
Fix the typo.
Vladimír Vondruš 9 years ago
parent
commit
d3f9f5120c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Modules/FindDevIL.cmake

+ 1 - 1
Modules/FindDevIL.cmake

@@ -67,6 +67,6 @@ find_library(ILU_LIBRARIES
 
 #message("ILU_LIBRARIES is ${ILU_LIBRARIES}")
 
-FIND_PACKAGE_HANDLE_STANDARD_ARGS(IL DEFAULT_MSG
+FIND_PACKAGE_HANDLE_STANDARD_ARGS(DevIL DEFAULT_MSG
                                   IL_LIBRARIES ILU_LIBRARIES
                                   ILUT_LIBRARIES IL_INCLUDE_DIR)