The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=15370
======================================================================
Reported By: Lectem
Assigned To:
======================================================================
Project: CMake
Issue ID: 15370
Category: CMake
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2015-01-23 19:18 EST
Last Modified: 2015-01-23 19:18 EST
======================================================================
Summary: find_path MinGW not working while find_library does
Description:
I couldn't get most of my libraries detected with find_package.
I figured out that the libraries files were found but not the headers.
For example :
find_path(GLEW_INCLUDE_DIR GL/glew.h)
will not work while
find_library(GLEW_LIBRARY glew32)
does.
FIND_PACKAGE(GLEW)
Does also set GLEW_LIBRARY and GLEW_LIBRARIES but not GLEW_INCLUDE_DIR.
Steps to Reproduce:
FIND_PACKAGE(GLEW)
IF(GLEW_FOUND)
MESSAGE(STATUS "GLEW found.")
MESSAGE(STATUS "Detected GLEW path is : ${GLEW_LIBRARIES}")
ENDIF(GLEW_FOUND)
IF(GLEW_LIBRARIES)
MESSAGE(STATUS "Detected GLEW_LIBRARIES path is : ${GLEW_LIBRARIES}")
ENDIF(GLEW_LIBRARIES)
IF(GLEW_INCLUDE_DIRS)
MESSAGE(STATUS "Detected GLEW_INCLUDE_DIRS path is : ${GLEW_INCLUDE_DIRS}")
ELSE(GLEW_INCLUDE_DIRS)
MESSAGE(STATUS "Couldn't find GLEW_INCLUDE_DIRS")
ENDIF(GLEW_INCLUDE_DIRS)
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2015-01-23 19:18 Lectem New Issue
======================================================================
--
Powered by www.kitware.com
Please keep messages on-topic and check the CMake FAQ at:
http://www.cmake.org/Wiki/CMake_FAQ
Kitware offers various services to support the CMake community. For more
information on each offering, please visit:
CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/cmake-developers