diff options
author | Marius Kintel <marius@kintel.net> | 2012-02-18 15:57:24 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2012-02-18 15:57:24 (GMT) |
commit | 79d9fdba3256cf7e60d6d00e92b0f46160bcf45b (patch) | |
tree | d55883ecb4b2cd41cf5c86533d34157a6677eebf /tests/CMakeLists.txt | |
parent | d460e7203fe8ce8c799a1558351e374218e1222a (diff) |
GLEW fix: Support GLEW installed in the default system location
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index ad3eefe..c395a52 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -239,15 +239,14 @@ if (NOT GLEW_INCLUDE_DIR) NAMES GLEW glew HINTS ${GLEW_DIR}/lib NO_DEFAULT_PATH) - if (NOT GLEW_INCLUDE_DIR OR NOT GLEW_LIBRARY) + if (NOT GLEW_LIBRARY) find_package(GLEW REQUIRED) - if (NOT GLEW_INCLUDE_DIR OR NOT GLEW_LIBRARY) + if (NOT GLEW_LIBRARY) message(FATAL_ERROR "GLEW not found") endif() - else() - message(STATUS "GLEW include found in " ${GLEW_INCLUDE_DIR}) - message(STATUS "GLEW library found in " ${GLEW_LIBRARY}) endif() + message(STATUS "GLEW include: " ${GLEW_INCLUDE_DIR}) + message(STATUS "GLEW library: " ${GLEW_LIBRARY}) endif() inclusion(GLEW_DIR GLEW_INCLUDE_DIR) |