From 9e8598fb1ca359143600d6bb2e8b317126a86bcc Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Sat, 16 May 2020 20:59:10 +0100 Subject: Upgrade to C++17 [CMake] (#4717) * Make our CMake slightly less insane --- src/mbedTLS++/CMakeLists.txt | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/mbedTLS++') diff --git a/src/mbedTLS++/CMakeLists.txt b/src/mbedTLS++/CMakeLists.txt index 29c323cc6..42e0fc8b2 100644 --- a/src/mbedTLS++/CMakeLists.txt +++ b/src/mbedTLS++/CMakeLists.txt @@ -1,5 +1,6 @@ +target_sources( + ${CMAKE_PROJECT_NAME} PRIVATE -set(SRCS AesCfb128Decryptor.cpp AesCfb128Encryptor.cpp BlockingSslClientSocket.cpp @@ -13,9 +14,7 @@ set(SRCS SslConfig.cpp SslContext.cpp X509Cert.cpp -) -set(HDRS AesCfb128Decryptor.h AesCfb128Encryptor.h BlockingSslClientSocket.h @@ -31,8 +30,3 @@ set(HDRS Sha1Checksum.h X509Cert.h ) - -if(NOT MSVC) - add_library(mbedTLS++ ${SRCS} ${HDRS}) - target_link_libraries(mbedTLS++ fmt::fmt mbedtls) -endif() -- cgit v1.2.3