summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-04-27 21:25:03 +0200
committerTycho <work.tycho+git@gmail.com>2014-04-27 21:25:03 +0200
commit1d3ad6faa22a040bc6bb15727b9783ae2f547a02 (patch)
treea350efccb3eebb6410d91175b92a227dd5d26110 /lib
parentFixed bad comment (diff)
downloadcuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.gz
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.bz2
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.lz
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.xz
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.tar.zst
cuberite-1d3ad6faa22a040bc6bb15727b9783ae2f547a02.zip
Diffstat (limited to '')
-rw-r--r--lib/polarssl.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/polarssl.cmake b/lib/polarssl.cmake
index d57cc9220..2a58e54c5 100644
--- a/lib/polarssl.cmake
+++ b/lib/polarssl.cmake
@@ -1,5 +1,9 @@
if(NOT TARGET polarssl)
message("including polarssl")
- add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL )
+ 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()
endif()