2021-04-08 04:12:01 +08:00
|
|
|
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
2022-12-02 05:47:00 +08:00
|
|
|
--- a/CMakeLists.txt (revision b0a749c8e7a8294b68581ce4feac0e55045eb00b)
|
|
|
|
+++ b/CMakeLists.txt (date 1669850632899)
|
|
|
|
@@ -1071,8 +1071,8 @@
|
2021-09-08 23:02:56 +08:00
|
|
|
"${LWS_ABSOLUTE_INSTALL_CMAKE_DIR}"
|
|
|
|
"${LWS_ABSOLUTE_INSTALL_INCLUDE_DIR}") # Calculate the relative directory from the cmake dir.
|
2021-04-08 04:12:01 +08:00
|
|
|
|
|
|
|
-if (DEFINED REL_INCLUDE_DIR)
|
|
|
|
- set(LWS__INCLUDE_DIRS "\${LWS_CMAKE_DIR}/${REL_INCLUDE_DIR}")
|
|
|
|
+if (1)
|
2022-12-02 05:47:00 +08:00
|
|
|
+ set(LWS__INCLUDE_DIRS "\${CMAKE_CURRENT_LIST_DIR}/../include")
|
2021-09-08 23:02:56 +08:00
|
|
|
endif()
|
2022-12-02 05:47:00 +08:00
|
|
|
if (DEFINED OPENSSL_INCLUDE_DIRS)
|
|
|
|
set(LWS__INCLUDE_DIRS "${LWS__INCLUDE_DIRS};${OPENSSL_INCLUDE_DIRS}")
|
2021-04-08 04:12:01 +08:00
|
|
|
diff --git a/lib/CMakeLists.txt b/lib/CMakeLists.txt
|
2022-12-02 05:47:00 +08:00
|
|
|
--- a/lib/CMakeLists.txt (revision b0a749c8e7a8294b68581ce4feac0e55045eb00b)
|
|
|
|
+++ b/lib/CMakeLists.txt (date 1669850782017)
|
|
|
|
@@ -174,7 +174,7 @@
|
2021-09-08 23:02:56 +08:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../include>
|
|
|
|
)
|
2021-04-08 04:12:01 +08:00
|
|
|
- target_include_directories(websockets PRIVATE ${LWS_LIB_BUILD_INC_PATHS})
|
|
|
|
+ target_include_directories(websockets PRIVATE $<BUILD_INTERFACE:${LWS_LIB_BUILD_INC_PATHS}> PUBLIC $<INSTALL_INTERFACE:include>)
|
2021-09-08 23:02:56 +08:00
|
|
|
target_compile_definitions(websockets PRIVATE LWS_BUILDING_STATIC)
|
2022-12-02 05:47:00 +08:00
|
|
|
target_include_directories(websockets PUBLIC ${LWS_PUBLIC_INCLUDES})
|
|
|
|
set(LWS_PUBLIC_INCLUDES ${LWS_PUBLIC_INCLUDES} PARENT_SCOPE)
|
|
|
|
@@ -202,7 +202,7 @@
|
2021-09-08 23:02:56 +08:00
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/../include>
|
|
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/../include>
|
|
|
|
)
|
2021-04-08 04:12:01 +08:00
|
|
|
- target_include_directories(websockets_shared PRIVATE ${LWS_LIB_BUILD_INC_PATHS})
|
|
|
|
+ target_include_directories(websockets_shared PRIVATE $<BUILD_INTERFACE:${LWS_LIB_BUILD_INC_PATHS}> PUBLIC $<INSTALL_INTERFACE:include>)
|
2021-09-08 23:02:56 +08:00
|
|
|
target_compile_definitions(websockets_shared PRIVATE LWS_BUILDING_SHARED)
|
2022-12-02 05:47:00 +08:00
|
|
|
target_include_directories(websockets_shared PUBLIC ${LWS_PUBLIC_INCLUDES})
|
|
|
|
set(LWS_PUBLIC_INCLUDES ${LWS_PUBLIC_INCLUDES} PARENT_SCOPE)
|