We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 73c3b81 commit 59fb9ecCopy full SHA for 59fb9ec
websocketpp-config.cmake.in
@@ -6,3 +6,9 @@
6
@PACKAGE_INIT@
7
set_and_check(WEBSOCKETPP_INCLUDE_DIR "@PACKAGE_INSTALL_INCLUDE_DIR@")
8
set(WEBSOCKETPP_FOUND TRUE)
9
+
10
+#This is a bit of a hack, but it works well. It also allows continued support of CMake 2.8
11
+if(${CMAKE_VERSION} VERSION_GREATER 3.0.0 OR ${CMAKE_VERSION} VERSION_EQUAL 3.0.0)
12
+ add_library(websocketpp::websocketpp INTERFACE IMPORTED)
13
+ set_target_properties(websocketpp::websocketpp PROPERTIES INTERFACE_INCLUDE_DIRECTORIES "${WEBSOCKETPP_INCLUDE_DIR}")
14
+endif()
0 commit comments