Skip to content

Commit 7c162bf

Browse files
committed
Try link stdc++fs
1 parent ea68c09 commit 7c162bf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

CMakeLists.txt

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,12 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
66
include(FindPkgConfig)
77

88
pkg_search_module(POPPLERGLIB REQUIRED poppler-glib)
9-
pkg_search_module(STDCFS REQUIRED stdc++fs)
10-
119
add_executable(diff-pdf diff-pdf.cpp)
10+
1211
target_include_directories(diff-pdf PRIVATE
1312
"${POPPLERGLIB_INCLUDE_DIRS}"
14-
"${STDCFS_INCLUDE_DIRS}"
1513
)
1614

17-
target_link_libraries(diff-pdf ${POPPLERGLIB_LIBRARIES} ${STDCFS_LIBRARIES})
18-
target_link_directories(diff-pdf PRIVATE
19-
${POPPLERGLIB_LIBRARY_DIRS} ${STDCFS_LIBRARY_DIRS}
20-
)
15+
target_link_libraries(diff-pdf ${POPPLERGLIB_LIBRARIES})
16+
target_link_directories(diff-pdf PRIVATE ${POPPLERGLIB_LIBRARY_DIRS} stdc++fs)
2117
install(TARGETS diff-pdf RUNTIME DESTINATION bin)

0 commit comments

Comments
 (0)