[Libwebsockets] build doc not working in 'build' directory with cmake + fix

Edwin van den Oetelaar oetelaar.automatisering at gmail.com
Tue Feb 19 14:04:38 CET 2013


Hello Andy and other folks,

The procedure ;
mkdir build ; cd build ; cmake ../

complained about :
Error: Cannot open file lib/libwebsockets.h

This is a possible fix.
Greetings,
Edwin van den Oetelaar

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3bb6c6d..b8bca0f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -209,7 +209,7 @@ set(HDR_PRIVATE
        )

 set(HDR_PUBLIC
-       lib/libwebsockets.h
+       ${PROJECT_SOURCE_DIR}/lib/libwebsockets.h
        )



More information about the Libwebsockets mailing list