Skip to content

Commit 2c061b5

Browse files
committed
FreeBSD CMakeLists.txt fix.
1 parent fa1533e commit 2c061b5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
#############################################################################
44

55
ADD_EXECUTABLE(subnetcalc subnetcalc.cc tools.cc)
6-
TARGET_LINK_LIBRARIES(subnetcalc ${Intl_LIBRARIES} ${GeoIP_LIBRARY})
6+
TARGET_LINK_LIBRARIES(subnetcalc ${Intl_LIBRARIES})
7+
IF (GEOIP_FOUND)
8+
TARGET_LINK_LIBRARIES(subnetcalc ${GeoIP_LIBRARY})
9+
ENDIF()
710
INSTALL(TARGETS subnetcalc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
811
INSTALL(FILES subnetcalc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
912
INSTALL(FILES subnetcalc.bash-completion

0 commit comments

Comments
 (0)