Remove debug info. And add warning message if pkg-config not found.

This commit is contained in:
Vladimir Timofeev 2014-11-25 16:41:46 +03:00
parent 3bb163a979
commit b299f7f74d
1 changed files with 1 additions and 10 deletions

View File

@ -37,11 +37,10 @@
# first, and then if nothing found, we repeat search for dynamic
find_package(PkgConfig)
#TODO: remove after fix
if(PKG_CONFIG_FOUND)
message(STATUS "PkgConfig found")
else()
message(STATUS "PkgConfig not found")
message(STATUS "PkgConfig not found, if you have only static glfw library, you build can fail")
endif()
if(PKG_CONFIG_FOUND)
@ -57,14 +56,6 @@ if(PKG_CONFIG_FOUND)
# now try to find glfw with pkg-config
pkg_check_modules(PC_GLFW3 glfw3)
#TODO: remove when problem will be fixed
message(STATUS "BEGIN DEBUG")
foreach(_prefix PC_GLFW3 PC_GLFW3_STATIC)
foreach(_suffix LIBRARIES LIBRARY_DIRS LDFLAGS LDFLAGS_OTHER INCLUDE_DIRS CFLAGS CLAGS_OTHER)
message(STATUS "PkgConfig: ${_prefix}_${_suffix}: ${${_prefix}_${_suffix}}")
endforeach()
endforeach()
message(STATUS "END DEBUG")
if(PC_GLFW3_FOUND)
# try to find static library