Fixed OpenSSL programs and tests being generated when testing disabled.
This commit is contained in:
parent
7e3b26e7ba
commit
c3bd588826
@ -1,9 +1,9 @@
|
|||||||
|
|
||||||
if(NOT TARGET polarssl)
|
if(NOT TARGET polarssl)
|
||||||
message("including polarssl")
|
message("including polarssl")
|
||||||
|
set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
|
||||||
|
set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
|
||||||
if (SELF_TEST)
|
if (SELF_TEST)
|
||||||
set(ENABLE_TESTING OFF CACHE BOOL "Disable tests")
|
|
||||||
set(ENABLE_PROGRAMS OFF CACHE BOOL "Disable programs")
|
|
||||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl)
|
||||||
else()
|
else()
|
||||||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
|
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/polarssl/ ${CMAKE_CURRENT_BINARY_DIR}/lib/polarssl EXCLUDE_FROM_ALL)
|
||||||
|
Loading…
Reference in New Issue
Block a user