[Libwebsockets] something broke since my last git pull (some hours ago)

Edwin van den Oetelaar oetelaar.automatisering at gmail.com
Mon Feb 18 12:58:36 CET 2013


rm CMakeCache.txt
cd build
cmake ../
-- The C compiler identification is GNU
-- The CXX compiler identification is GNU
-- Check for working C compiler: /usr/bin/gcc
-- Check for working C compiler: /usr/bin/gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
CMake Warning at CMakeLists.txt:18 (find_package):
  Could not find module FindGit.cmake or a configuration file for package
  Git.

  Adjust CMAKE_MODULE_PATH to find FindGit.cmake or set Git_DIR to the
  directory containing a CMake configuration file for Git.  The file will
  have one of the following names:

    GitConfig.cmake
    git-config.cmake


this fix is here :

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 0d1d3a4..7d3cf5d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -13,6 +13,7 @@ set(VERSION "{PACKAGE_VERSION}")
 set(SOVERSION "3.0.0")

 set(LWS_LIBRARY_VERSION ${PACKAGE_VERSION})
+set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")

 # Try to find the current Git hash.
 find_package(Git)
@@ -93,7 +94,6 @@ if (MINGW)
        set(LWS_MINGW_SUPPORT 1)
 endif()

-set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${PROJECT_SOURCE_DIR}/cmake/")
 include_directories(${PROJECT_BINARY_DIR})



More information about the Libwebsockets mailing list