3rdparty: Add additional build facilities for 3rd-party code
diff --git a/library/CMakeLists.txt b/library/CMakeLists.txt
index a6eb1ed..f4bb472 100644
--- a/library/CMakeLists.txt
+++ b/library/CMakeLists.txt
@@ -74,7 +74,6 @@
     threading.c
     timing.c
     xtea.c
-    ${src_thirdparty}
 )
 
 # For files generated by the parent project (Mbed TLS) when building Mbed
@@ -95,6 +94,8 @@
 )
 endif()
 
+list(APPEND src_crypto ${thirdparty_src})
+
 if(CMAKE_COMPILER_IS_GNUCC)
     set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wmissing-declarations -Wmissing-prototypes")
 endif(CMAKE_COMPILER_IS_GNUCC)