Skip to content

Commit 7371d17

Browse files
committed
zxing.pc: add -DZXING_EXPERIMENTAL_API to Clfags if appropriate
Fix #964.
1 parent ea6e337 commit 7371d17

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

core/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -640,6 +640,9 @@ install (
640640
)
641641

642642
IF (NOT WIN32 OR MINGW)
643+
if (${ZXING_EXPERIMENTAL_API})
644+
set(COMPILE_FLAGS "-DZXING_EXPERIMENTAL_API")
645+
endif()
643646
configure_file(zxing.pc.in zxing.pc @ONLY)
644647
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/zxing.pc DESTINATION ${CMAKE_INSTALL_LIBDIR}/pkgconfig)
645648
ENDIF()

core/zxing.pc.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Name: ZXing
55
Description: ZXing-C++ library
66
Version: @PROJECT_VERSION@
77
Libs: -L${libdir} -lZXing
8-
Cflags: -I${includedir} -I${includedir}/ZXing
8+
Cflags: -I${includedir} -I${includedir}/ZXing @COMPILE_FLAGS@

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy