We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa1533e commit 2c061b5Copy full SHA for 2c061b5
src/CMakeLists.txt
@@ -3,7 +3,10 @@
3
#############################################################################
4
5
ADD_EXECUTABLE(subnetcalc subnetcalc.cc tools.cc)
6
-TARGET_LINK_LIBRARIES(subnetcalc ${Intl_LIBRARIES} ${GeoIP_LIBRARY})
+TARGET_LINK_LIBRARIES(subnetcalc ${Intl_LIBRARIES})
7
+IF (GEOIP_FOUND)
8
+ TARGET_LINK_LIBRARIES(subnetcalc ${GeoIP_LIBRARY})
9
+ENDIF()
10
INSTALL(TARGETS subnetcalc RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
11
INSTALL(FILES subnetcalc.1 DESTINATION ${CMAKE_INSTALL_MANDIR}/man1)
12
INSTALL(FILES subnetcalc.bash-completion
0 commit comments