CMake: fix upnptools.h header install
@@ -131,11 +131,11 @@ LIST (APPEND UPNP_HEADERS
${UPNP_BINARY_DIR}/upnp/inc/upnpconfig.h
)
-IF (ENABLE_TOOLS)
+IF (tools)
LIST (APPEND UPNP_HEADERS
inc/upnptools.h
)
-ENDIF (ENABLE_TOOLS)
+ENDIF ()
SET_TARGET_PROPERTIES (upnp_shared PROPERTIES
OUTPUT_NAME upnp
