Skip to content

Commit 7c8087b

Browse files
authored
Implement requested changes to not break build on Mac OS X
Implement requested changes to not break build on Mac OS X
2 parents e2a201c + f80cb84 commit 7c8087b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

CMakeLists.txt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,11 @@ target_include_directories(diff-pdf PRIVATE
1212
"${POPPLERGLIB_INCLUDE_DIRS}"
1313
)
1414

15-
target_link_libraries(diff-pdf ${POPPLERGLIB_LIBRARIES} stdc++fs)
15+
target_link_libraries(diff-pdf ${POPPLERGLIB_LIBRARIES})
16+
17+
if(CMAKE_SYSTEM_NAME MATCHES "Linux")
18+
target_link_libraries(diff-pdf stdc++fs)
19+
endif()
20+
1621
target_link_directories(diff-pdf PRIVATE ${POPPLERGLIB_LIBRARY_DIRS})
1722
install(TARGETS diff-pdf RUNTIME DESTINATION bin)

0 commit comments

Comments
 (0)