 +target_compile_definitions(${lib_name} PUBLIC $<INSTALL_INTERFACE:OPENSSL_API_COMPAT=0x10100000L>)
 +set(THREADS_PREFER_PTHREAD_FLAG ON)
 +find_package(Threads REQUIRED)
-+target_link_libraries(${lib_name} Threads::Threads ${CMAKE_DL_LIBS})
-+if(FALSE)
-+# TODO: EXPORT of STATIC library with PRIVATE non-target dependencies broken
-+# https://gitlab.kitware.com/cmake/cmake/issues/17357
-+# I'm seeing the same error reported in this issue
-+target_link_libraries(${lib_name} PRIVATE include)
-+else()
-+target_include_directories(${lib_name} PRIVATE
-+  ${CMAKE_SOURCE_DIR}/include
-+  ${CMAKE_BINARY_DIR}/include # e_os.h, openssl/opensslconf.h
-+  )
-+endif()
++target_link_libraries(${lib_name} PUBLIC $<BUILD_INTERFACE:include> PRIVATE Threads::Threads ${CMAKE_DL_LIBS})
 +set_target_properties(${lib_name} PROPERTIES OUTPUT_NAME ${lib_name}${ver})
 +########################################
 +install(TARGETS ${lib_name} EXPORT ${targetsFile}

+########################################
+list(APPEND ${lib_name}_all ${${lib_name}_libsrcs})
+compareCmakeFilesys("${${lib_name}_all}")

+add_subdirectory(include)
+add_subdirectory(crypto)
+add_subdirectory(ssl)
+add_subdirectory(test)
+if(DEFINED XP_NAMESPACE)
+  set(nameSpace NAMESPACE ${XP_NAMESPACE}::)
+endif()
