Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
hs-test: cat summary file after a failed test run
[vpp.git]
/
src
/
plugins
/
ikev2
/
CMakeLists.txt
diff --git
a/src/plugins/ikev2/CMakeLists.txt
b/src/plugins/ikev2/CMakeLists.txt
index
13297c6
..
568271e
100644
(file)
--- a/
src/plugins/ikev2/CMakeLists.txt
+++ b/
src/plugins/ikev2/CMakeLists.txt
@@
-11,6
+11,14
@@
# See the License for the specific language governing permissions and
# limitations under the License.
# See the License for the specific language governing permissions and
# limitations under the License.
+if(NOT OPENSSL_FOUND)
+ message(WARNING "openssl headers not found - ikev2 plugin disabled")
+ return()
+endif()
+
+include_directories(${OPENSSL_INCLUDE_DIR})
+add_compile_definitions(OPENSSL_SUPPRESS_DEPRECATED)
+
add_vpp_plugin(ikev2
SOURCES
ikev2.c
add_vpp_plugin(ikev2
SOURCES
ikev2.c
@@
-21,6
+29,7
@@
add_vpp_plugin(ikev2
ikev2_payload.c
API_FILES
ikev2_payload.c
API_FILES
+ ikev2_types.api
ikev2.api
API_TEST_SOURCES
ikev2.api
API_TEST_SOURCES
@@
-29,4
+38,7
@@
add_vpp_plugin(ikev2
INSTALL_HEADERS
ikev2.h
ikev2_priv.h
INSTALL_HEADERS
ikev2.h
ikev2_priv.h
+
+ LINK_LIBRARIES
+ ${OPENSSL_CRYPTO_LIBRARIES}
)
)