ikev2: build only when deps requirements are met
[vpp.git] / src / plugins / ikev2 / CMakeLists.txt
index 6f2e5a6..41292fc 100644 (file)
 # See the License for the specific language governing permissions and
 # limitations under the License.
 
-add_definitions (-DWITH_LIBSSL=1)
+if(NOT OPENSSL_FOUND)
+  message(WARNING "openssl headers not found - ikev2 plugin disabled")
+  return()
+endif()
+
 include_directories(${OPENSSL_INCLUDE_DIR})
 
 add_vpp_plugin(ikev2