Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ if (BUILD_SHARED_LIBS)
else()
# Building static library
target_compile_definitions(utf8proc PUBLIC "UTF8PROC_STATIC")
list(APPEND UTF8PROC_COMPILE_DEFS "-DUTF8PROC_STATIC")
if (MSVC)
set_target_properties(utf8proc PROPERTIES OUTPUT_NAME "utf8proc_static")
endif()
Expand All @@ -54,6 +55,7 @@ if (UTF8PROC_INSTALL)
LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
)
string(REPLACE ";" " " UTF8PROC_COMPILE_DEF "${UTF8PROC_COMPILE_DEFS}")
configure_file(libutf8proc.pc.cmakein libutf8proc.pc @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/libutf8proc.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
# Install CMake targets file.
Expand Down
2 changes: 1 addition & 1 deletion libutf8proc.pc.cmakein
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ Name: libutf8proc
Description: UTF8 processing
Version: @PROJECT_VERSION@
Libs: -L${libdir} -lutf8proc
Cflags: -I${includedir} -DUTF8PROC_EXPORTS
Cflags: -I${includedir} @UTF8PROC_COMPILE_DEF@
Loading