diff options
author | Mattes D <github@xoft.cz> | 2015-05-03 10:01:19 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-05-03 10:01:19 +0200 |
commit | 2f369d09b60fc576c9d01ef6830d746a8ccf7d2f (patch) | |
tree | 3fbab9380b34779394bdf0d1ca3edc6490908957 /lib | |
parent | Merge pull request #1880 from mc-server/submodules (diff) | |
download | cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar.gz cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar.bz2 cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar.lz cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar.xz cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.tar.zst cuberite-2f369d09b60fc576c9d01ef6830d746a8ccf7d2f.zip |
Diffstat (limited to 'lib')
-rw-r--r-- | lib/polarssl.cmake | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/lib/polarssl.cmake b/lib/polarssl.cmake index ced70b94e..3506d0fb4 100644 --- a/lib/polarssl.cmake +++ b/lib/polarssl.cmake @@ -1,11 +1,10 @@ -if(NOT TARGET polarssl) +# This script includes PolarSSL, if not already included. +# It is needed for when multiple projects reference PolarSSL. + +if(NOT TARGET mbedtls) message("including polarssl") set(ENABLE_TESTING OFF CACHE BOOL "Disable tests") set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs") - if (SELF_TEST) - add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl) - else() - add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL) - endif() + add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL) endif() |