Commit 32541593 authored by Weng Xuetian's avatar Weng Xuetian

Protect against duplicate imported targets.

parent d612e072
Pipeline #78320301 passed with stage
in 0 seconds
......@@ -5,17 +5,23 @@ include(CMakeFindDependencyMacro)
find_dependency(Boost 1.61)
find_dependency(Fcitx5Utils)
add_executable(LibIME::slm_build_binary IMPORTED)
set_target_properties(LibIME::slm_build_binary PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_slm_build_binary")
if(NOT TARGET LibIME::slm_build_binary)
add_executable(LibIME::slm_build_binary IMPORTED)
set_target_properties(LibIME::slm_build_binary PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_slm_build_binary")
endif()
add_executable(LibIME::prediction IMPORTED)
set_target_properties(LibIME::prediction PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_prediction")
if(NOT TARGET LibIME::prediction)
add_executable(LibIME::prediction IMPORTED)
set_target_properties(LibIME::prediction PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_prediction")
endif()
add_executable(LibIME::history IMPORTED)
set_target_properties(LibIME::history PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_history")
if(NOT TARGET LibIME::history)
add_executable(LibIME::history IMPORTED)
set_target_properties(LibIME::history PROPERTIES
IMPORTED_LOCATION "@CMAKE_INSTALL_FULL_BINDIR@/libime_history")
endif()
include("${CMAKE_CURRENT_LIST_DIR}/LibIMECoreTargets.cmake")
set(LIBIME_INSTALL_PKGDATADIR "@LIBIME_INSTALL_PKGDATADIR@")
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment