Skip to content

Commit

Permalink
sync to main
Browse files Browse the repository at this point in the history
  • Loading branch information
alfredh committed Jan 1, 2024
1 parent 2d439ae commit 7ed0b7c
Showing 1 changed file with 1 addition and 23 deletions.
24 changes: 1 addition & 23 deletions cmake/libre-config.cmake
Original file line number Diff line number Diff line change
@@ -1,23 +1 @@
if("@LIBRE_BUILD_STATIC@")
include(CMakeFindDependencyMacro)
find_dependency(Threads)
if("@USE_OPENSSL@")
find_dependency(OpenSSL)
endif()
if("@ZLIB_FOUND@")
find_dependency(ZLIB)
endif()
endif()

include("${CMAKE_CURRENT_LIST_DIR}/libre-targets.cmake")

# convenience target libre::libre for uniform usage
if(NOT TARGET libre::libre)
if(TARGET libre::re_shared AND (BUILD_SHARED_LIBS OR NOT TARGET libre::re))
add_library(libre::libre INTERFACE IMPORTED)
set_target_properties(libre::libre PROPERTIES INTERFACE_LINK_LIBRARIES libre::re_shared)
elseif(TARGET libre::re AND (NOT BUILD_SHARED_LIBS OR NOT TARGET libre::re_shared))
add_library(libre::libre INTERFACE IMPORTED)
set_target_properties(libre::libre PROPERTIES INTERFACE_LINK_LIBRARIES libre::re)
endif()
endif()
include("${CMAKE_CURRENT_LIST_DIR}/libre.cmake")

0 comments on commit 7ed0b7c

Please sign in to comment.