Use `${CMAKE_BINARY_DIR}/lib` rather than `${CMAKE_BINARY_DIR}/ThirdParty`.