diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt (revision b0a749c8e7a8294b68581ce4feac0e55045eb00b) +++ b/CMakeLists.txt (date 1669850632899) @@ -1071,8 +1071,8 @@ "${LWS_ABSOLUTE_INSTALL_CMAKE_DIR}" "${LWS_ABSOLUTE_INSTALL_INCLUDE_DIR}") # Calculate the relative directory from the cmake dir. -if (DEFINED REL_INCLUDE_DIR) - set(LWS__INCLUDE_DIRS "\${LWS_CMAKE_DIR}/${REL_INCLUDE_DIR}") +if (1) + set(LWS__INCLUDE_DIRS "\${CMAKE_CURRENT_LIST_DIR}/../include") endif() if (DEFINED OPENSSL_INCLUDE_DIRS) set(LWS__INCLUDE_DIRS "${LWS__INCLUDE_DIRS};${OPENSSL_INCLUDE_DIRS}") diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt --- a/lib/CMakeLists.txt (revision b0a749c8e7a8294b68581ce4feac0e55045eb00b) +++ b/lib/CMakeLists.txt (date 1669850782017) @@ -174,7 +174,7 @@ $ $ ) - target_include_directories(websockets PRIVATE ${LWS_LIB_BUILD_INC_PATHS}) + target_include_directories(websockets PRIVATE $ PUBLIC $) target_compile_definitions(websockets PRIVATE LWS_BUILDING_STATIC) target_include_directories(websockets PUBLIC ${LWS_PUBLIC_INCLUDES}) set(LWS_PUBLIC_INCLUDES ${LWS_PUBLIC_INCLUDES} PARENT_SCOPE) @@ -202,7 +202,7 @@ $ $ ) - target_include_directories(websockets_shared PRIVATE ${LWS_LIB_BUILD_INC_PATHS}) + target_include_directories(websockets_shared PRIVATE $ PUBLIC $) target_compile_definitions(websockets_shared PRIVATE LWS_BUILDING_SHARED) target_include_directories(websockets_shared PUBLIC ${LWS_PUBLIC_INCLUDES}) set(LWS_PUBLIC_INCLUDES ${LWS_PUBLIC_INCLUDES} PARENT_SCOPE)