mirror of
https://gitlab.freedesktop.org/uchardet/uchardet.git
synced 2025-12-08 01:36:41 +08:00
cmake: rename UCHARDET_{TARGET -> LIBRARY} for clarity
This commit is contained in:
parent
31a53570d6
commit
1a1f4bfbd8
@ -41,7 +41,7 @@ set(
|
||||
uchardet.cpp
|
||||
)
|
||||
|
||||
set (UCHARDET_TARGET libuchardet)
|
||||
set (UCHARDET_LIBRARY libuchardet)
|
||||
if (BUILD_STATIC AND BUILD_SHARED_LIBS)
|
||||
set (UCHARDET_STATIC_TARGET libuchardet_static)
|
||||
endif ()
|
||||
@ -53,7 +53,7 @@ add_definitions(
|
||||
)
|
||||
|
||||
add_library(
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
${UCHARDET_SOURCES}
|
||||
)
|
||||
|
||||
@ -66,7 +66,7 @@ if (UCHARDET_STATIC_TARGET)
|
||||
endif (UCHARDET_STATIC_TARGET)
|
||||
|
||||
set_target_properties(
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
PROPERTIES
|
||||
LINKER_LANGUAGE
|
||||
CXX
|
||||
@ -99,7 +99,7 @@ endif (CMAKE_BUILD_TYPE MATCHES Debug)
|
||||
if (NOT WIN32)
|
||||
install(
|
||||
TARGETS
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
LIBRARY DESTINATION
|
||||
${CMAKE_INSTALL_LIBDIR}
|
||||
ARCHIVE DESTINATION
|
||||
@ -108,7 +108,7 @@ if (NOT WIN32)
|
||||
else (NOT WIN32)
|
||||
install(
|
||||
TARGETS
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
RUNTIME DESTINATION
|
||||
${CMAKE_INSTALL_BINDIR}
|
||||
ARCHIVE DESTINATION
|
||||
|
||||
@ -28,7 +28,7 @@ elseif (CMAKE_CXX_COMPILER_ID STREQUAL GNU)
|
||||
endif (APPLE)
|
||||
|
||||
set_target_properties(
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
PROPERTIES
|
||||
LINK_FLAGS
|
||||
"${LINK_FLAGS}"
|
||||
|
||||
@ -10,7 +10,7 @@ add_executable(
|
||||
|
||||
target_link_libraries(
|
||||
uchardet
|
||||
${UCHARDET_TARGET}
|
||||
${UCHARDET_LIBRARY}
|
||||
)
|
||||
|
||||
install(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user