Skip to content

Commit 1158a44

Browse files
committed
Final touchup of cmake files before public release
1 parent 08b3ed7 commit 1158a44

2 files changed

Lines changed: 7 additions & 4 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ set(LIOCONV "lioconv-win")
5151
set(LCONFIG "lconfig")
5252
set(LDECODER "ldecoder")
5353
set(LQRCODE "lqrcode")
54-
set(LZBAR "libzbar")
54+
set(LZBAR "")
55+
56+
if(WIN32)
57+
set(LZBAR "libzbar")
58+
else()
59+
set(LZBAR "zbar")
60+
endif()
5561

5662
if(WIN32 OR ANDROID OR APPLE)
5763
include_directories("${PROJECT_SOURCE_DIR}/zbar/libiconv-win/include")

zbar/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,9 +59,6 @@ elseif(WIN32)
5959

6060
target_compile_definitions(${LCONFIG} PUBLIC LIB_ZBAR_BUILD)
6161
target_compile_definitions(${LZBAR} PUBLIC LIB_ZBAR_BUILD)
62-
elseif(APPLE)
63-
# xcrun --show-sdk-path
64-
set(C_HEADERS "/Library/Developer/CommandLineTools/SDKs/MacOSX10.14.sdk/usr/include")
6562
endif()
6663

6764
find_file(HAVE_DLFCN_F "dlfcn.h" "${C_HEADERS}")

0 commit comments

Comments
 (0)